public class GroupType extends GroupTypeBase implements LocalId
This represents the common GroupType object. Name of group type must be unique. You must pass the correct attribute list with the correct name and type for each attribute with the GroupType when updating.
Modifier and Type | Field and Description |
---|---|
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_TYPE_NAME |
static java.lang.Integer |
SORT_BY_ID |
static java.lang.Integer |
SORT_BY_LAST_MODIFIED |
Constructor and Description |
---|
GroupType() |
GroupType(java.lang.String name,
java.lang.String creatorUsername)
Instantiate a group type with the fields that must be populated
to create the group type in the database.
|
Modifier and Type | Method and Description |
---|---|
Attribute[] |
getAttributes() |
java.lang.String |
getDescription() |
java.lang.Long |
getId()
Returns this object's local identifier,
null if the object
was not identified locally using a Long Id. |
int |
getSpecial()
Returns 1 if the Group Type name is
Constants.DEPARTMENTS_GROUP_TYPE_NAME and
returns 2 if the Group Type name is Constants.TEAMS_GROUP_TYPE_NAME . |
java.lang.String |
getUuid()
Returns the UUID of this Group Type.
|
void |
setAttributes(Attribute[] attributes) |
void |
setDescription(java.lang.String description) |
void |
setId(java.lang.Long p)
Sets this object's local identifier.
|
void |
setSpecial(int special_)
See
getSpecial() . |
void |
setUuid(java.lang.String uuid)
Set the UUID of this Group Type.
|
java.lang.String |
toString() |
getCreated, getCreator, getGroupTypeName, getLastModified, setCreated, setCreator, setGroupTypeName, setLastModified
public static final java.lang.Integer SORT_BY_GROUP_TYPE_NAME
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_CREATOR
public static final java.lang.Integer SORT_BY_ID
public static final java.lang.Integer SORT_BY_ATTRIBUTES
public static final java.lang.Integer SORT_BY_DESCRIPTION
public GroupType()
public GroupType(java.lang.String name, java.lang.String creatorUsername)
name
- The group type name.creatorUsername
- The username of the group type creator.public java.lang.Long getId()
LocalId
null
if the object
was not identified locally using a Long
Id.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 int getSpecial()
Constants.DEPARTMENTS_GROUP_TYPE_NAME
and
returns 2 if the Group Type name is Constants.TEAMS_GROUP_TYPE_NAME
.public void setSpecial(int special_)
getSpecial()
. This field cannot be updated in the database.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public Attribute[] getAttributes()
public void setAttributes(Attribute[] attributes)
public java.lang.String toString()
toString
in class GroupTypeBase
Copyright © 2003-2022 Appian Corporation. All Rights Reserved.