Class PermissionAttribute

  • All Implemented Interfaces:

    public class PermissionAttribute
    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.

    A Permission Attribute is used for attribute type permission filtering. Fortress merely stores this data, does not enforce the attribute filtering. It is up to the client to do the attribute checks.

    PermissionAttribute Schema

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

    1. organizationalRole Structural Object Class is used to store basic attributes like cn and description.

     objectclass ( NAME 'organizationalRole'
      DESC 'RFC2256: an organizational role'
      MUST cn
      MAY (
          x121Address $ registeredAddress $ destinationIndicator $
          preferredDeliveryMethod $ telexNumber $ teletexTerminalIdentifier $
          telephoneNumber $ internationaliSDNNumber $ facsimileTelephoneNumber $
          seeAlso $ roleOccupant $ preferredDeliveryMethod $ street $
          postOfficeBox $ postalCode $ postalAddress $
          physicalDeliveryOfficeName $ ou $ st $ l $ description

    2. The ftAttribute STRUCTURAL Object Class

     Fortress Permission Attribute Structural Object Class
     objectclass ( ftObId:10
     NAME 'ftAttribute'
     DESC 'Fortress Attribute Structural Object Class'
     SUP organizationalrole STRUCTURAL
     MUST (
          ftId $ ftPASet $ ftPA $ cn
      MAY (
          ftPADataType $ ftPADefaultValue $ ftPADefaultStrategy $ ftPADefaultOperator $ ftPAValidVals $ description
    Apache Directory Project
    See Also:
    Serialized Form
    • Constructor Detail

      • PermissionAttribute

        public PermissionAttribute()
      • PermissionAttribute

        public PermissionAttribute​(String attributeName)
    • Method Detail

      • equals

        public boolean equals​(Object thatObj)
        Checks that attribute names are equal
        equals in class Object
      • hashCode

        public int hashCode()
        hashCode in class Object
      • getDefaultOperator

        public String getDefaultOperator()
      • setDefaultOperator

        public void setDefaultOperator​(String defaultOperator)
      • getDataType

        public String getDataType()
      • setDataType

        public void setDataType​(String dataType)
      • getDefaultValue

        public String getDefaultValue()
      • setDefaultValue

        public void setDefaultValue​(String defaultValue)
      • getDefaultStrategy

        public String getDefaultStrategy()
      • setDefaultStrategy

        public void setDefaultStrategy​(String defaultStrategy)
      • getValidValues

        public List<String> getValidValues()
      • setValidValues

        public void setValidValues​(List<String> validValues)
      • getAttributeName

        public String getAttributeName()
      • setAttributeName

        public void setAttributeName​(String attributeName)
      • getDn

        public String getDn()
      • setDn

        public void setDn​(String dn)
      • getInternalId

        public String getInternalId()
      • setInternalId

        public void setInternalId()
      • setInternalId

        public void setInternalId​(String internalId)
      • getDescription

        public String getDescription()
      • setDescription

        public void setDescription​(String description)