public class Workgroup extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<Workgroup>, Jsonable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMMON_GROUP
Shared group is a virtual group (not really persisted in database) that
everyone belongs to.
|
static java.lang.Long |
COMMON_GROUP_ID |
static java.lang.String |
SITE_ADMIN_GROUP
Site admin group is the parent/ancester group for all other groups.
|
static java.lang.String |
SLACK_CHANNELS |
Constructor and Description |
---|
Workgroup() |
Workgroup(org.json.JSONObject json) |
Workgroup(java.lang.Long id,
java.lang.String name,
java.lang.String comment) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Workgroup other) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAttribute(java.lang.String name) |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes() |
static Workgroup |
getCommonGroup() |
java.lang.String |
getDescription() |
java.lang.String |
getEndDate() |
java.lang.Long |
getId() |
org.json.JSONObject |
getJson() |
java.lang.String |
getJsonName()
May be overridden to name the JSON object returned from
Jsonable.getJson() . |
java.lang.String |
getName() |
java.lang.String |
getNameAndRolesAsString() |
java.lang.String |
getParentGroup() |
java.util.List<java.lang.String> |
getRoles() |
java.lang.String |
getSlackChannels() |
java.lang.String[] |
getUserCuids() |
User[] |
getUsers() |
int |
hashCode() |
boolean |
hasRole(java.lang.String roleName)
Check whether the group has the specified role.
|
boolean |
isActive() |
void |
setAttribute(java.lang.String name,
java.lang.String value) |
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes) |
void |
setDescription(java.lang.String description) |
void |
setEndDate(java.lang.String endDate) |
void |
setId(java.lang.Long id) |
void |
setName(java.lang.String groupName) |
void |
setParentGroup(java.lang.String parentGroup) |
void |
setRoles(java.util.List<java.lang.String> roles) |
void |
setSlackChannels(java.lang.String s) |
void |
setUsers(User[] users) |
java.lang.String |
toString() |
public static final java.lang.String SLACK_CHANNELS
public static final java.lang.String SITE_ADMIN_GROUP
public static final java.lang.String COMMON_GROUP
public static final java.lang.Long COMMON_GROUP_ID
public Workgroup()
public Workgroup(java.lang.Long id, java.lang.String name, java.lang.String comment)
public Workgroup(org.json.JSONObject json) throws org.json.JSONException
org.json.JSONException
public static final Workgroup getCommonGroup()
public java.lang.Long getId()
public void setId(java.lang.Long id)
public java.lang.String getName()
public void setName(java.lang.String groupName)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public void setRoles(java.util.List<java.lang.String> roles)
public java.util.List<java.lang.String> getRoles()
public User[] getUsers()
public void setUsers(User[] users)
public java.lang.String[] getUserCuids()
public java.lang.String getParentGroup()
public void setParentGroup(java.lang.String parentGroup)
public java.lang.String getEndDate()
public void setEndDate(java.lang.String endDate)
public boolean isActive()
public boolean hasRole(java.lang.String roleName)
public java.lang.String getNameAndRolesAsString()
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
public void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
public java.lang.String getAttribute(java.lang.String name)
public void setAttribute(java.lang.String name, java.lang.String value)
public java.lang.String toString()
toString
in class java.lang.Object
public org.json.JSONObject getJson() throws org.json.JSONException
org.json.JSONException
public int compareTo(Workgroup other)
compareTo
in interface java.lang.Comparable<Workgroup>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getJsonName()
Jsonable
Jsonable.getJson()
.public java.lang.String getSlackChannels()
public void setSlackChannels(java.lang.String s)
Copyright © 2019 CenturyLink, Inc.