Class DomainPermission

  • All Implemented Interfaces:
    Serializable, Permission

    public class DomainPermission
    extends WildcardPermission
    Provides a base Permission class from which type-safe/domain-specific subclasses may extend. Can be used as a base class for JPA/Hibernate persisted permissions that wish to store the parts of the permission string in separate columns (e.g. 'domain', 'actions' and 'targets' columns), which can be used in querying strategies.
    Since:
    1.0
    See Also:
    Serialized Form
    • Constructor Detail

      • DomainPermission

        public DomainPermission()
        Creates a domain permission with *all* actions for *all* targets;
      • DomainPermission

        public DomainPermission(String actions)
      • DomainPermission

        public DomainPermission(String actions,
                                String targets)
      • DomainPermission

        protected DomainPermission(Set<String> actions,
                                   Set<String> targets)