|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.services.ldap.simple.beans.SimpleGroup
public class SimpleGroup
Simple Java Bean representing a group entry in LDAP.
SimpleGroup bean generated by the Toolbox Bean Generator.
This bean implements the DaoBean interface that allows it to be persisted by sub-class instances of the toolbox.services.dao.DaoService class.
Constructor Summary | |
---|---|
SimpleGroup()
Default constructor to initialise the internal Map for storing bean properties. |
Method Summary | |
---|---|
static SimpleGroup |
create(java.util.Map map)
Create a new SimpleGroup bean instance using the properties in the given Map as the values of the bean properties. |
java.lang.String |
getCn()
Return the cn property. |
java.lang.String |
getDescription()
Return the description property. |
java.lang.String |
getDn()
Return the dn property. |
java.util.Map |
getMap()
Return the Map containing the bean properties. |
java.lang.String |
getMapping(java.lang.String prop)
Return the mapped value for the provided property name. |
java.util.Map |
getMappings()
Return the Map containing the property mappings. |
java.util.Set |
getUniqueMember()
Return the uniqueMember property. |
void |
setCn(java.lang.String cn)
Set the cn property. |
void |
setDescription(java.lang.String description)
Set the description property. |
void |
setDn(java.lang.String dn)
Set the dn property. |
void |
setMap(java.util.Map map)
Set the Map containing the bean properties. |
void |
setUniqueMember(java.util.Set uniqueMember)
Set the uniqueMember property. |
java.lang.String |
toString()
Return a String representation of this DaoBean instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimpleGroup()
Method Detail |
---|
public void setDn(java.lang.String dn)
dn
- New value of the
dn property.public java.lang.String getDn()
public void setCn(java.lang.String cn)
cn
- New value of the
cn property.public java.lang.String getCn()
public void setDescription(java.lang.String description)
description
- New value of the
description property.public java.lang.String getDescription()
public void setUniqueMember(java.util.Set uniqueMember)
uniqueMember
- New value of the
uniqueMember property.public java.util.Set getUniqueMember()
public void setMap(java.util.Map map)
setMap
in interface DaoBean
map
- Map containing bean properties.public java.util.Map getMap()
getMap
in interface DaoBean
public java.lang.String getMapping(java.lang.String prop)
getMapping
in interface DaoBean
prop
- Return the mapping for this property.
public java.util.Map getMappings()
getMappings
in interface DaoBean
public static SimpleGroup create(java.util.Map map) throws java.lang.Exception
Property mappings are done using Java Reflection and is performed as follows:
The keys in the Map are used as the names of the bean properties. If the Map contains a key with the value name it will be translated into a method call that will invoke the setName(...) method on the target bean using the value associated with the key in the Map.
map
- Map containing bean properties.
java.lang.Exception
- if the bean cannot be created.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |