public final class Group extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Group.Builder
Builder for
Group class. |
Modifier and Type | Field and Description |
---|---|
static com.edorasware.commons.core.entity.Type |
ENTITY_TYPE
The type that identifies a group entity.
|
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(com.edorasware.commons.core.entity.GroupId id,
com.edorasware.commons.core.entity.GroupId externalId,
com.edorasware.commons.core.entity.TenantId tenantId,
com.edorasware.commons.core.entity.WorkObjectId accountId,
String displayName,
GroupType type)
Creates a new
Group instance from the given attributes with the ability to set an external group id. |
static Group |
from(com.edorasware.commons.core.entity.GroupId id,
com.edorasware.commons.core.entity.TenantId tenantId,
com.edorasware.commons.core.entity.WorkObjectId accountId,
String displayName)
Creates a new
Group instance from the given attributes. |
com.edorasware.commons.core.entity.WorkObjectId |
getAccountId()
Returns the id of the account to which the group belongs.
|
String |
getDisplayName()
Returns the display name of the group.
|
com.edorasware.commons.core.entity.GroupId |
getExternalId()
Returns the external id of the group.
|
com.edorasware.commons.core.entity.GroupId |
getId()
Returns the id of the group.
|
com.edorasware.commons.core.entity.TenantId |
getTenantId()
Returns the id of the main tenant to which the group belongs.
|
GroupType |
getType()
Returns the type of the group.
|
int |
hashCode() |
String |
toString() |
public static final com.edorasware.commons.core.entity.Type ENTITY_TYPE
public static Group.Builder builder()
Group
instance.public static Group.Builder builder(Group groupTemplate)
groupTemplate
- the group template.public com.edorasware.commons.core.entity.GroupId getId()
public com.edorasware.commons.core.entity.GroupId getExternalId()
public com.edorasware.commons.core.entity.TenantId getTenantId()
public com.edorasware.commons.core.entity.WorkObjectId getAccountId()
public String getDisplayName()
public GroupType getType()
public static Group from(com.edorasware.commons.core.entity.GroupId id, com.edorasware.commons.core.entity.TenantId tenantId, com.edorasware.commons.core.entity.WorkObjectId accountId, String displayName)
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(com.edorasware.commons.core.entity.GroupId id, com.edorasware.commons.core.entity.GroupId externalId, com.edorasware.commons.core.entity.TenantId tenantId, com.edorasware.commons.core.entity.WorkObjectId accountId, String displayName, GroupType type)
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 - 2017 edorasware ag. All Rights Reserved.