Class PermissionAttributeSet

  • All Implemented Interfaces:
    Serializable

    public class PermissionAttributeSet
    extends FortEntity
    implements Serializable
    All entities (User, Role, Permission, Policy, SDSet, etc...) are used to carry data between Fortress's layers starting with the (1) Manager layer down thru middle (2) Process layer and it's processing rules into (3) DAO layer where persistence with the LDAP server occurs. The clients must instantiate an Fortress entity before use and must provide enough information to uniquely identity target record for reads.

    The PermissionAttributeSet entity is a grouping of PermissionAttribute. A Permission can link to 0 to many Permission Attribute Sets.

    PermissionAttribute Schema

    The PermissionAttributeSet entity is a composite of 2 different LDAP Schema object classes:

    1. organizationalUnit Structural Object Class is used to store basic attributes like ou and description.

     ------------------------------------------
     objectclass ( 2.5.6.5 NAME 'organizationalUnit'
      DESC 'RFC2256: an organizational unit'
      SUP top STRUCTURAL
      MUST ou
      MAY (
          userPassword $ searchGuide $ seeAlso $ businessCategory $
          x121Address $ registeredAddress $ destinationIndicator $
          preferredDeliveryMethod $ telexNumber $ teletexTerminalIdentifier $
          telephoneNumber $ internationaliSDNNumber $
          facsimileTelephoneNumber $ street $ postOfficeBox $ postalCode $
          postalAddress $ physicalDeliveryOfficeName $ st $ l $ description
      )
     )
     ------------------------------------------
     

    2. The ftAttributeSet STRUCTURAL Object Class

     ------------------------------------------
     objectclass ( ftObId:9
     NAME 'ftAttributeSet'
     DESC 'Fortress Permission Attribute Set Structural Object Class'
     SUP organizationalunit STRUCTURAL
     MUST (
          ftId $ ftPASet $ cn
      )
     MAY (
          ftPA $ ftPASetType $ description
      )
     )
     ------------------------------------------
     
    Author:
    Apache Directory Project
    See Also:
    Serialized Form
    • Constructor Detail

      • PermissionAttributeSet

        public PermissionAttributeSet​(String name)
      • PermissionAttributeSet

        public PermissionAttributeSet()
    • Method Detail

      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • getAttributes

        public Set<PermissionAttribute> getAttributes()
        Return the collection of optional Attributes that have been loaded into this entity. This is stored as a multi-occurring attribute of ftPA entries on the 'ftAttributeSet' object class.
        Returns:
        Set containing the roles which maps to 'ftRoles' attribute in 'ftOperation' object class.
      • setAttributes

        public void setAttributes​(Set<PermissionAttribute> attributes)
        Set the collection of optional Attributes that have been loaded into this entity. This is stored as a multi-occurring attribute of ftPAs on the 'ftOperation' object class.
        Parameters:
        attributes - maps to 'ftPA' attribute in 'ftOperation' object class.
      • setInternalId

        public void setInternalId​(String internalId)
      • getInternalId

        public String getInternalId()
      • setInternalId

        public void setInternalId()
      • getDescription

        public String getDescription()
      • setDescription

        public void setDescription​(String description)
      • getType

        public String getType()
      • setType

        public void setType​(String type)
      • getDn

        public String getDn()
      • setDn

        public void setDn​(String dn)