@GroupDataType public class Group extends GroupBase implements LocalId
This represents the Group object. Name of group must be unique. If the group is of a group type with attributes, you must pass the correct attribute list with the correct name and type for each attribute with the group. Note that when a group specifies a parent, it automatically becomes a member group of its parent.
Modifier and Type | Field and Description |
---|---|
static java.lang.Long |
MEMBERPOLICY_AUTOMATIC |
static java.lang.Long |
MEMBERPOLICY_CLOSED |
static java.lang.Long |
MEMBERPOLICY_EXCLUSIVE |
static java.lang.Long |
NULL_PARENT_ID
This is the value returned by
getParentId() when the group doesn't have a parent. |
static java.lang.Integer |
SORT_BY_ATTRIBUTES |
static java.lang.Integer |
SORT_BY_CREATED |
static java.lang.Integer |
SORT_BY_CREATOR |
static java.lang.Integer |
SORT_BY_DESCRIPTION |
static java.lang.Integer |
SORT_BY_GROUP_NAME
Sort constants for getting and searching for groups.
|
static java.lang.Integer |
SORT_BY_GROUPTYPE_ID |
static java.lang.Integer |
SORT_BY_GROUPTYPE_NAME |
static java.lang.Integer |
SORT_BY_ID |
static java.lang.Integer |
SORT_BY_LAST_MODIFIED |
static java.lang.Integer |
SORT_BY_MEMBER_POLICY_ID |
static java.lang.Integer |
SORT_BY_MEMBER_POLICY_NAME |
static java.lang.Integer |
SORT_BY_PARENT_ID |
static java.lang.Integer |
SORT_BY_PARENT_NAME |
static java.lang.Integer |
SORT_BY_SECURITY_MAP_ID |
static java.lang.Integer |
SORT_BY_SECURITY_MAP_NAME |
static java.lang.Integer |
SORT_BY_VIEWING_POLICY_ID |
static java.lang.Integer |
SORT_BY_VIEWING_POLICY_NAME |
static java.lang.Long |
VIEWINGPOLICY_HIGH |
static java.lang.Long |
VIEWINGPOLICY_LOW |
SECURITYMAP_PERSONAL, SECURITYMAP_PUBLIC, SECURITYMAP_TEAM
Constructor and Description |
---|
Group() |
Group(java.lang.Long groupTypeId,
java.lang.String name)
Instantiate a group with the fields that must be populated
to create the group in the database.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Attribute[] |
getAttributes() |
boolean |
getDelegatedCreation()
Decide whether delegated creation field be visible to the client
|
java.lang.String |
getDescription() |
boolean |
getFavorite() |
java.lang.Long |
getGroupTypeId()
Returns the id of this group's type.
|
java.lang.Long |
getId()
Returns the id of this Group.
|
static java.lang.Long[] |
getIds(Group[] groups)
Get the ids (as a Long array) from an array of Group objects.
|
java.lang.Long |
getMemberPolicyId() |
java.lang.String |
getMemberPolicyName() |
java.lang.Long |
getParentId() |
java.lang.String |
getSecurityMapName() |
java.lang.String |
getUuid()
Returns the UUID of this Group.
|
java.lang.Long |
getViewingPolicyId() |
java.lang.String |
getViewingPolicyName() |
int |
hashCode() |
void |
setAttributes(Attribute[] attributes) |
void |
setDelegatedCreation(boolean delegatedCreation_) |
void |
setDescription(java.lang.String description) |
void |
setFavorite(boolean favorite_) |
void |
setGroupTypeId(java.lang.Long groupTypeId) |
void |
setId(java.lang.Long p)
Sets this object's local identifier.
|
void |
setMemberPolicyId(java.lang.Long memberPolicyId)
Sets the memberPolicyId.
|
void |
setMemberPolicyName(java.lang.String memberPolicyName)
The name corresponding to viewing policy id.
|
void |
setParentId(java.lang.Long parentId) |
void |
setSecurityMapName(java.lang.String securityMapName)
The name corresponding to security map id.
|
void |
setUuid(java.lang.String uuid)
Set the UUID of this Group.
|
void |
setViewingPolicyId(java.lang.Long viewingPolicyId)
Sets the viewingPolicyId.
|
void |
setViewingPolicyName(java.lang.String viewingPolicyName)
The name corresponding to viewing policy id.
|
java.lang.String |
toString() |
getCreated, getCreator, getGroupName, getGroupTypeName, getLastModified, getParentName, getSecurityMapId, setCreated, setCreator, setGroupName, setGroupTypeName, setLastModified, setParentName, setSecurityMapId
public static final java.lang.Integer SORT_BY_GROUP_NAME
public static final java.lang.Integer SORT_BY_PARENT_NAME
public static final java.lang.Integer SORT_BY_CREATOR
public static final java.lang.Integer SORT_BY_CREATED
public static final java.lang.Integer SORT_BY_LAST_MODIFIED
public static final java.lang.Integer SORT_BY_GROUPTYPE_NAME
public static final java.lang.Integer SORT_BY_ID
public static final java.lang.Integer SORT_BY_DESCRIPTION
public static final java.lang.Integer SORT_BY_PARENT_ID
public static final java.lang.Integer SORT_BY_GROUPTYPE_ID
public static final java.lang.Integer SORT_BY_SECURITY_MAP_ID
public static final java.lang.Integer SORT_BY_ATTRIBUTES
public static final java.lang.Integer SORT_BY_MEMBER_POLICY_ID
public static final java.lang.Integer SORT_BY_VIEWING_POLICY_ID
public static final java.lang.Integer SORT_BY_SECURITY_MAP_NAME
public static final java.lang.Integer SORT_BY_MEMBER_POLICY_NAME
public static final java.lang.Integer SORT_BY_VIEWING_POLICY_NAME
public static final java.lang.Long MEMBERPOLICY_AUTOMATIC
public static final java.lang.Long MEMBERPOLICY_EXCLUSIVE
public static final java.lang.Long MEMBERPOLICY_CLOSED
public static final java.lang.Long VIEWINGPOLICY_LOW
public static final java.lang.Long VIEWINGPOLICY_HIGH
public static final java.lang.Long NULL_PARENT_ID
getParentId()
when the group doesn't have a parent.public Group()
public Group(java.lang.Long groupTypeId, java.lang.String name)
groupTypeId
- The id of the group's type.name
- The name of the group.public java.lang.Long getId()
getId
in interface LocalId
LocalId.setId(Long)
public void setId(java.lang.Long p)
LocalId
setId
in interface LocalId
p
- Id to setLocalId.getId()
@ConvertWith(value=com.appiancorp.kougar.mapper.parameters.UuidParameterConverter.class) public java.lang.String getUuid()
public void setUuid(java.lang.String uuid)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public java.lang.Long getParentId()
public void setParentId(java.lang.Long parentId)
public java.lang.Long getGroupTypeId()
public void setGroupTypeId(java.lang.Long groupTypeId)
public Attribute[] getAttributes()
public void setAttributes(Attribute[] attributes)
public boolean getDelegatedCreation()
public void setDelegatedCreation(boolean delegatedCreation_)
public java.lang.Long getMemberPolicyId()
public void setMemberPolicyId(java.lang.Long memberPolicyId)
MEMBERPOLICY_AUTOMATIC - Anyone can join if they can see the group
MEMBERPOLICY_CLOSED - Admins must select members of this group
memberPolicyId
- The memberPolicyId to set.public java.lang.Long getViewingPolicyId()
public void setViewingPolicyId(java.lang.Long viewingPolicyId)
VIEWINGPOLICY_HIGH
, VIEWINGPOLICY_LOW
VIEWINGPOLICY_HIGH - Only Admins can see members of the group
VIEWINGPOLICY_LOW - Anyone who can see the group can view its members
viewingPolicyId
- The viewingPolicyId to setpublic java.lang.String getMemberPolicyName()
public void setMemberPolicyName(java.lang.String memberPolicyName)
memberPolicyName
- The member policy name to set.setMemberPolicyId(java.lang.Long)
public java.lang.String getSecurityMapName()
public void setSecurityMapName(java.lang.String securityMapName)
securityMapName
- The securityMapName to set.GroupBase.setSecurityMapId(java.lang.Long)
public java.lang.String getViewingPolicyName()
public void setViewingPolicyName(java.lang.String viewingPolicyName)
viewingPolicyName
- The viewingPolicyName to set.setViewingPolicyId(java.lang.Long)
public boolean getFavorite()
public void setFavorite(boolean favorite_)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static java.lang.Long[] getIds(Group[] groups)
groups
- an array of GroupsCopyright © 2003-2024 Appian Corporation. All Rights Reserved.