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 Details

    • getApplicationType

      String getApplicationType()
      Returns:
      the application type, unique across plugins, used in the REST paths
    • getApplication

      HiddenApplication getApplication(String name, String language)
      Parameters:
      name - window name
      language - 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

      boolean canView(String name, org.exoplatform.services.security.Identity identity)
      Parameters:
      name - window name
      identity - user Identity
      Returns:
      true when the user can view the window