Class PermissionAttribute
- java.lang.Object
-
- org.apache.directory.fortress.core.model.FortEntity
-
- org.apache.directory.fortress.core.model.PermissionAttribute
-
- All Implemented Interfaces:
Serializable
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 ( 2.5.6.8 NAME 'organizationalRole' DESC 'RFC2256: an organizational role' SUP top STRUCTURAL 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 ) ) ------------------------------------------
- Author:
- Apache Directory Project
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.directory.fortress.core.model.FortEntity
adminSession, contextId, modCode, modId, sequenceId
-
-
Constructor Summary
Constructors Constructor Description PermissionAttribute()
PermissionAttribute(String attributeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object thatObj)
Checks that attribute names are equalString
getAttributeName()
String
getDataType()
String
getDefaultOperator()
String
getDefaultStrategy()
String
getDefaultValue()
String
getDescription()
String
getDn()
String
getInternalId()
List<String>
getValidValues()
int
hashCode()
void
setAttributeName(String attributeName)
void
setDataType(String dataType)
void
setDefaultOperator(String defaultOperator)
void
setDefaultStrategy(String defaultStrategy)
void
setDefaultValue(String defaultValue)
void
setDescription(String description)
void
setDn(String dn)
void
setInternalId()
void
setInternalId(String internalId)
void
setValidValues(List<String> validValues)
-
Methods inherited from class org.apache.directory.fortress.core.model.FortEntity
getAdminSession, getContextId, getModCode, getModId, getSequenceId, setAdminSession, setContextId, setModCode, setSequenceId
-
-
-
-
Constructor Detail
-
PermissionAttribute
public PermissionAttribute()
-
PermissionAttribute
public PermissionAttribute(String attributeName)
-
-
Method Detail
-
equals
public boolean equals(Object thatObj)
Checks that attribute names are equal
-
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)
-
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)
-
-