Class Configuration
- java.lang.Object
-
- org.apache.directory.fortress.core.model.FortEntity
-
- org.apache.directory.fortress.core.model.Configuration
-
public class Configuration extends FortEntity
A class for passing configuration information.
-
-
Field Summary
-
Fields inherited from class org.apache.directory.fortress.core.model.FortEntity
adminSession, contextId, modCode, modId, sequenceId
-
-
Constructor Summary
Constructors Constructor Description Configuration()
Configuration(String name, Properties props)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProperties(Properties props)
Add new collection of name/value pairs to attributes associated with Configuration node.void
addProperty(String key, String value)
Add name/value pair to list of properties associated with Configuration node.boolean
equals(Object o)
String
getGidNumber()
String
getName()
Properties
getProperties()
Return the collection of name/value pairs to attributes associated with Configuration node.String
getProperty(String key)
Get a name/value pair attribute from list of properties associated with Configuration node.Props
getProps()
Gets the value of the Props property.String
getUidNumber()
int
hashCode()
void
setGidNumber(String gidNumber)
void
setName(String name)
void
setProps(Props value)
Sets the value of the Props property.void
setUidNumber(String uidNumber)
-
Methods inherited from class org.apache.directory.fortress.core.model.FortEntity
getAdminSession, getContextId, getModCode, getModId, getSequenceId, setAdminSession, setContextId, setModCode, setSequenceId
-
-
-
-
Constructor Detail
-
Configuration
public Configuration()
-
Configuration
public Configuration(String name, Properties props)
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
getProps
public Props getProps()
Gets the value of the Props property. This method is used by Fortress Core and Rest and should not be called by external programs.- Returns:
- possible object is
Props
-
setProps
public void setProps(Props value)
Sets the value of the Props property. This method is used by Fortress Core and Rest and should not be called by external programs.- Parameters:
value
- allowed object isProps
-
addProperty
public void addProperty(String key, String value)
Add name/value pair to list of properties associated with Configuration node. These values are not constrained by Fortress. Properties are optional.- Parameters:
key
- contains property name and maps to 'ftProps' attribute in 'ftProperties' aux object class.value
- The property value to add
-
getProperty
public String getProperty(String key)
Get a name/value pair attribute from list of properties associated with Configuration node. These values are not constrained by Fortress. Properties are optional.- Parameters:
key
- contains property name and maps to 'ftProps' attribute in 'ftProperties' aux object class.- Returns:
- value containing name/value pair that maps to 'ftProps' attribute in 'ftProperties' aux object class.
-
addProperties
public void addProperties(Properties props)
Add new collection of name/value pairs to attributes associated with Configuration node. These values are not constrained by Fortress. Properties are optional.- Parameters:
props
- contains collection of name/value pairs and maps to 'ftProps' attribute in 'ftProperties' aux object class.
-
getProperties
public Properties getProperties()
Return the collection of name/value pairs to attributes associated with Configuration node. These values are not constrained by Fortress. Properties are optional.- Returns:
- Properties contains collection of name/value pairs and maps to 'ftProps' attribute in 'ftProperties' aux object class.
-
getUidNumber
public String getUidNumber()
-
setUidNumber
public void setUidNumber(String uidNumber)
-
getGidNumber
public String getGidNumber()
-
setGidNumber
public void setGidNumber(String gidNumber)
-
-