Class AdminMenuSecurityDomain

java.lang.Object
ch.tocco.nice2.security.spi.AbstractSecurityDomain
ch.tocco.nice2.model.menu.impl.security.AdminMenuSecurityDomain
All Implemented Interfaces:
SecurityDomain

@Component public class AdminMenuSecurityDomain extends AbstractSecurityDomain
Is registred as the "adminMenu" security domain and accepts RootMenuItem.
  • Constructor Details

    • AdminMenuSecurityDomain

      public AdminMenuSecurityDomain()
  • Method Details

    • getSupportedClasses

      protected Class<?>[] getSupportedClasses()
      Specified by:
      getSupportedClasses in class AbstractSecurityDomain
    • getSelectorFactory

      public SelectorFactory getSelectorFactory()
      Description copied from interface: SecurityDomain
      Create a selector factory. A selector factory is an object which creates selectors. There is no interface as the arguments defined in the policy will be matched to factory methods using reflection. The contract for the object returned by this method is as follows:

      It specify several methods called createSelector with the return type Selector. It may take any number of arguments. Supported argument types are all Java primitives, String, enumerations and arrays of enumerations. The last argument may be an array, which indicates varargs. Wildcards will be passed as null. The methods may throw an InvalidArgumentException.

      Returns:
      The selector factory.