public class Group extends FortEntity implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Group.Type
enum for User or Role data sets.
|
adminSession, contextId, modCode, modId, sequenceId
Constructor and Description |
---|
Group()
Default constructor used by
FortressAntTask defaults to type USER. |
Group(Group.Type type)
Constructor for base type.
|
Group(String name)
Generate instance of group to be loaded as ldap object.
|
Group(String name,
Group.Type type)
Generate instance of group to be loaded as ldap object with node type.
|
Group(String name,
String description)
Generate instance of group to be loaded as ldap object.
|
Group(String name,
String description,
Group.Type type)
Generate instance of group to be loaded as ldap object with node type.
|
Modifier and Type | Method and Description |
---|---|
void |
addProperty(String key,
String value)
Add name/value pair to list of properties associated with PermObj.
|
boolean |
equals(Object o) |
String |
getDescription()
Get the description for the domain component.
|
List<String> |
getMembers()
Return the members
|
String |
getName()
Get the second level qualifier on the domain component.
|
Properties |
getProperties()
Return the collection of name/value pairs to attributes associated with PermObj.
|
String |
getProperty(String key)
Get a name/value pair attribute from list of properties associated with PermObj.
|
List<String> |
getPropList() |
Props |
getProps()
Gets the value of the Props property.
|
String |
getProtocol()
Get protocol qualifier for this entity.
|
Group.Type |
getType()
Get the required type of Group - 'USER' Or 'ROLE'.
|
int |
hashCode() |
boolean |
isMemberDn()
Set if userDn's are loaded in dn format.
|
void |
setDescription(String description)
Set the description for the domain component.
|
void |
setMember(String userId)
Add a single userId as member of this entity.
|
void |
setMemberDn(boolean memberDn)
Set to 'true' if members are in dn format.
|
void |
setMembers(List<String> members)
Set members onto this entity using a List of userIds.
|
void |
setMembers(String members)
Set a member on this entity using a comma delimited String.
|
void |
setName(String name)
Set the second level qualifier on the domain component.
|
void |
setProperties(Properties properties)
Replace teh collection of name/value pairs to attributes associated with Group entity.
|
void |
setProperties(String properties)
Add new collection of name=value pairs to attributes associated with Group.
|
void |
setProps(Props props)
Sets the value of the Props property.
|
void |
setProtocol(String protocol)
Set the protocol qualifier for this entity.
|
void |
setType(Group.Type type)
Set the required type of Group - 'USER' Or 'ROLE'.
|
String |
toString() |
getAdminSession, getContextId, getModCode, getModId, getSequenceId, setAdminSession, setContextId, setModCode, setSequenceId
public Group()
FortressAntTask
defaults to type USER.public Group(Group.Type type)
public Group(String name)
name
- maps to 'cn' attribute in group object class.public Group(String name, Group.Type type)
name
- maps to 'cn' attribute in group object class.public Group(String name, String description)
name
- maps to 'cn' attribute in group object class.description
- maps to 'description' attribute in group object class.public Group(String name, String description, Group.Type type)
name
- maps to 'cn' attribute in group object class.description
- maps to 'description' attribute in group object class.public Group.Type getType()
public void setType(Group.Type type)
type
- determines what set the node contains.public String getName()
public void setName(String name)
name
- maps to 'dcObject' object class.public String getDescription()
public void setDescription(String description)
description
- maps to 'o' attribute on 'dcObject'.public String getProtocol()
public void setProtocol(String protocol)
protocol
- contains protocol qualifier for this entity.public void setMember(String userId)
userId
- public List<String> getMembers()
public void setMembers(String members)
members
- String contains one or more userids in comma delimited format.public void setMembers(List<String> members)
members
- List of type String contains userIds to be associated as members of this group.public void addProperty(String key, String value)
key
- contains property name and maps to 'ftProps' attribute in 'ftProperties' aux object class.value
- public String getProperty(String key)
key
- contains property name and maps to 'ftProps' attribute in 'ftProperties' aux object class.public void setProperties(Properties properties)
properties
- contains collection of name/value pairs and maps to 'ftProps' attribute in 'ftProperties' aux object class.public void setProperties(String properties)
properties
- contains name=value pairs that are comma delmited.public Properties getProperties()
public Props getProps()
Props
public void setProps(Props props)
props
- allowed object is
Props
public boolean isMemberDn()
public void setMemberDn(boolean memberDn)
memberDn
- boolean value, set to 'true' if distinguished name (dn) format, 'false' if relative distinguished name (rdn) format.Copyright © 2003-2016, The Apache Software Foundation. All Rights Reserved. Generated 20160718-1621