Interface HiddenApplicationPlugin
public interface HiddenApplicationPlugin
SPI letting an application type offer each user to hide one of its windows
from its page. Declare a Spring bean annotated with
Service, so that it is visible to the
social context, with a bean name unique across addons. The plugin carries no
business logic: it reads the window through its own Service.-
Method Summary
-
Method Details
-
getApplicationType
String getApplicationType()- Returns:
- the application type, unique across plugins, used in the REST paths
-
getApplication
- Parameters:
name- window namelanguage- language of the returned title- Returns:
- the window, with its title in the given language and whether it allows hiding, null when it doesn't exist. Its page reference is null only for a window on no page (a shared or site layout): the listing then trusts the plugin for its presence, instead of checking that its page still holds it.
-
canView
- Parameters:
name- window nameidentity- userIdentity- Returns:
- true when the user can view the window
-