public class Group extends Object
Represents a group.
Modifier and Type | Class and Description |
---|---|
static class |
Group.Builder
Builder for
Group class. |
Modifier and Type | Method and Description |
---|---|
static Group.Builder |
builder()
Creates a builder for a new concrete
Group instance. |
static Group.Builder |
builder(Group groupTemplate)
|
boolean |
equals(Object other) |
static Group |
from(String id,
String tenantId,
String accountId,
String displayName)
Creates a new
Group instance from the given attributes. |
static Group |
from(String id,
String externalId,
String tenantId,
String accountId,
String displayName,
GroupType type)
Creates a new
Group instance from the given attributes with the ability to set an external group id. |
String |
getAccountId()
Returns the id of the account to which the group belongs.
|
String |
getDisplayName()
Returns the display name of the group.
|
String |
getExternalId()
Returns the external id of the group.
|
String |
getId()
Returns the id of the group.
|
String |
getTenantId()
Returns the id of the main tenant to which the group belongs.
|
GroupType |
getType()
Returns the type of the group.
|
Map<String,Object> |
getVariables()
Returns any optional additional variables attached to this group.
|
int |
hashCode() |
String |
toString() |
public static Group.Builder builder()
Creates a builder for a new concrete Group
instance.
public static Group.Builder builder(Group groupTemplate)
groupTemplate
- the group template.public String getId()
Returns the id of the group.
public String getExternalId()
Returns the external id of the group.
public String getTenantId()
Returns the id of the main tenant to which the group belongs. Note that the <i>current</i> tenant id might be different from the tenant id returned by this method.
public String getAccountId()
Returns the id of the account to which the group belongs.
public String getDisplayName()
Returns the display name of the group.
public GroupType getType()
Returns the type of the group.
public Map<String,Object> getVariables()
Returns any optional additional variables attached to this group.
null
or emptypublic static Group from(String id, String tenantId, String accountId, String displayName)
Creates a new Group
instance from the given attributes. The type of the group is per default the
GroupType.CUSTOM
group type.
id
- the id of the grouptenantId
- the main tenant of the groupaccountId
- the account to which the group belongsdisplayName
- the display name of the grouppublic static Group from(String id, String externalId, String tenantId, String accountId, String displayName, GroupType type)
Creates a new Group
instance from the given attributes with the ability to set an external group id.
id
- the id of the groupexternalId
- the external id of the grouptenantId
- the main tenant of the groupaccountId
- the account to which the group belongsdisplayName
- the display name of the grouptype
- the type of the groupCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.