Package com.atlan.model.admin
Class AtlanGroup
java.lang.Object
com.atlan.model.core.AtlanObject
com.atlan.model.admin.AtlanGroup
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
AtlanGroup.AtlanGroupBuilder<C extends AtlanGroup,
B extends AtlanGroup.AtlanGroupBuilder<C, B>> static final class
static final class
static final class
Nested classes/interfaces inherited from class com.atlan.model.core.AtlanObject
AtlanObject.AtlanObjectBuilder<C extends AtlanObject,
B extends AtlanObject.AtlanObjectBuilder<C, B>> -
Field Summary
Fields inherited from class com.atlan.model.core.AtlanObject
rawJsonObject
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AtlanGroup.AtlanGroupBuilder<?,
?> builder()
protected boolean
create()
Send this group to Atlan to create the group in Atlan.create
(AtlanClient client) Send this group to Atlan to create the group in Atlan.static AtlanGroup.AtlanGroupBuilder<?,
?> Builds the minimal object necessary to create a group.static void
delete
(AtlanClient client, String id) Delete a group from Atlan.static void
Delete a group from Atlan.boolean
Fetch the users that belong to this group.fetchUsers
(AtlanClient client) Fetch the users that belong to this group.static String
generateName
(String alias) Generate an internal name for this group from its UI-shown alias.static List<AtlanGroup>
get
(AtlanClient client, String alias) Retrieves all groups with a name that contains the provided string.static List<AtlanGroup>
Retrieves all groups with a name that contains the provided string.getAlias()
Name of the group as it appears in the UI.Detailed attributes of the group.TBCgetId()
Unique identifier for the group (GUID).getName()
Unique (internal) name for the group.getPath()
TBCPersonas the group is associated with (limited details).Purposes the group is associated with (limited details).getRoles()
TBCNumber of users in the group.int
hashCode()
boolean
Whether this group is a default (auto-assigned to new users) (true), or not (false).static List<AtlanGroup>
list()
Retrieves all groups currently defined in Atlan.static List<AtlanGroup>
list
(AtlanClient client) Retrieves all groups currently defined in Atlan.void
removeUsers
(AtlanClient client, List<String> userIds) Remove one or more users from this group.void
removeUsers
(List<String> userIds) Remove one or more users from this group.toString()
void
update()
Send this group to Atlan to update the group in Atlan.void
update
(AtlanClient client) Send this group to Atlan to update the group in Atlan.static AtlanGroup.AtlanGroupBuilder<?,
?> Builds the minimal object necessary to update a group.Methods inherited from class com.atlan.model.core.AtlanObject
getRawJsonObject, setRawJsonObject, toJson
-
Constructor Details
-
AtlanGroup
-
-
Method Details
-
isDefault
public boolean isDefault()Whether this group is a default (auto-assigned to new users) (true), or not (false). -
creator
Builds the minimal object necessary to create a group.- Parameters:
alias
- name of the group, as it should appear in the UI- Returns:
- the minimal request necessary to update the group, as a builder
-
updater
Builds the minimal object necessary to update a group.- Parameters:
id
- unique identifier (GUID) of the grouppath
- unique path of the group- Returns:
- the minimal request necessary to update the group, as a builder
-
generateName
Generate an internal name for this group from its UI-shown alias.- Parameters:
alias
- name of the group as it appears in the UI- Returns:
- internal name for the group
-
create
Send this group to Atlan to create the group in Atlan.- Returns:
- the unique identifier (GUID) of the group that was created, or null if no group was created
- Throws:
AtlanException
- on any error during API invocation
-
create
Send this group to Atlan to create the group in Atlan.- Parameters:
client
- connectivity to the Atlan tenant on which to create the group- Returns:
- the unique identifier (GUID) of the group that was created, or null if no group was created
- Throws:
AtlanException
- on any error during API invocation
-
update
Send this group to Atlan to update the group in Atlan.- Throws:
AtlanException
- on any error during API invocation
-
update
Send this group to Atlan to update the group in Atlan.- Parameters:
client
- connectivity to the Atlan tenant on which to update the group- Throws:
AtlanException
- on any error during API invocation
-
delete
Delete a group from Atlan.- Parameters:
id
- unique identifier (GUID) of the group to delete- Throws:
AtlanException
- on any error during API invocation
-
delete
Delete a group from Atlan.- Parameters:
client
- connectivity to the Atlan tenant from which to delete the groupid
- unique identifier (GUID) of the group to delete- Throws:
AtlanException
- on any error during API invocation
-
list
Retrieves all groups currently defined in Atlan.- Returns:
- the list of groups currently defined in Atlan
- Throws:
AtlanException
- on any error during API invocation
-
list
Retrieves all groups currently defined in Atlan.- Parameters:
client
- connectivity to the Atlan tenant from which to list the groups- Returns:
- the list of groups currently defined in Atlan
- Throws:
AtlanException
- on any error during API invocation
-
get
Retrieves all groups with a name that contains the provided string. (This could include a complete group name, in which case there should be at most a single item in the returned list, or could be a partial group name to retrieve all groups with that naming convention.)- Parameters:
alias
- name (as it appears in the UI) on which to filter the groups- Returns:
- all groups whose name (in the UI) contains the provided string
- Throws:
AtlanException
- on any error during API invocation
-
get
Retrieves all groups with a name that contains the provided string. (This could include a complete group name, in which case there should be at most a single item in the returned list, or could be a partial group name to retrieve all groups with that naming convention.)- Parameters:
client
- connectivity to the Atlan tenant from which to retrieve the groupalias
- name (as it appears in the UI) on which to filter the groups- Returns:
- all groups whose name (in the UI) contains the provided string
- Throws:
AtlanException
- on any error during API invocation
-
removeUsers
Remove one or more users from this group.- Parameters:
userIds
- unique identifiers (GUIDs) of the users to remove from the group- Throws:
AtlanException
- on any API communication issue
-
removeUsers
Remove one or more users from this group.- Parameters:
client
- connectivity to the Atlan tenant from which to remove the users from the groupuserIds
- unique identifiers (GUIDs) of the users to remove from the group- Throws:
AtlanException
- on any API communication issue
-
fetchUsers
Fetch the users that belong to this group.- Returns:
- details of the users that belong to this group
- Throws:
AtlanException
- on any API communication issue
-
fetchUsers
Fetch the users that belong to this group.- Parameters:
client
- connectivity to the Atlan tenant from which to retrieve the users belonging to the group- Returns:
- details of the users that belong to this group
- Throws:
AtlanException
- on any API communication issue
-
builder
-
toBuilder
-
getAlias
Name of the group as it appears in the UI. -
getAttributes
Detailed attributes of the group. -
getDecentralizedRoles
TBC -
getId
Unique identifier for the group (GUID). -
getName
Unique (internal) name for the group. -
getPath
TBC -
getPersonas
Personas the group is associated with (limited details). -
getPurposes
Purposes the group is associated with (limited details). -
getRoles
TBC -
getUserCount
Number of users in the group. -
equals
- Overrides:
equals
in classAtlanObject
-
canEqual
- Overrides:
canEqual
in classAtlanObject
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAtlanObject
-
toString
Description copied from class:AtlanObject
- Overrides:
toString
in classAtlanObject
-