@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00") public class DefaultGroup extends AbstractInstanceResource<Group> implements Group
properties
readLock, writeLock
Constructor and Description |
---|
DefaultGroup(InternalDataStore dataStore) |
DefaultGroup(InternalDataStore dataStore,
Map<String,Object> properties) |
Modifier and Type | Method and Description |
---|---|
Role |
assignRole(AssignRoleRequest assignRoleRequest)
Assigns a Role to a Group
|
Role |
assignRole(AssignRoleRequest assignRoleRequest,
Boolean disableNotifications)
Assigns a Role to a Group
|
void |
delete()
Remove Group
Removes a group with `OKTA_GROUP` type from your organization.
|
Date |
getCreated() |
Map<String,Object> |
getEmbedded() |
String |
getId() |
Date |
getLastMembershipUpdated() |
Date |
getLastUpdated() |
Map<String,Object> |
getLinks() |
List<String> |
getObjectClass() |
GroupProfile |
getProfile() |
Map<String,Property> |
getPropertyDescriptors() |
Class<? extends Resource> |
getResourceClass()
Returns the class this resource represents.
|
GroupType |
getType() |
ApplicationList |
listApplications()
List Assigned Applications
Enumerates all applications that are assigned to a group.
|
UserList |
listUsers()
List Group Members
Enumerates all users that are a member of a group.
|
void |
removeUser(String userId)
Remove User from Group
Removes a user from a group with 'OKTA_GROUP' type.
|
Group |
setProfile(GroupProfile profile) |
Group |
update()
Update Group
Updates the profile for a group with `OKTA_GROUP` type from your organization.
|
save
clear, containsKey, containsValue, createPropertyDescriptorMap, createPropertyDescriptorMap, entrySet, equals, get, getDataStore, getDeletedPropertyNames, getInternalProperties, getParamsFromHref, getProperty, getPropertyNames, getResourceHref, getResourceListProperty, getResourceProperty, getUpdatedPropertyNames, hashCode, hasProperty, isDirty, isEmpty, isPrintableProperty, keySet, materialize, put, putAll, remove, setInternalProperties, setProperty, setProperty, setResourceHref, size, toString, values
getBoolean, getBoolean, getBooleanProperty, getCharArray, getDateProperty, getDoubleProperty, getDoubleProperty, getEnumListProperty, getEnumProperty, getEnumProperty, getInt, getInteger, getIntegerList, getIntProperty, getIntProperty, getListProperty, getListProperty, getMap, getMapProperty, getNonEmptyMap, getNullableBoolean, getNullableBooleanProperty, getNumber, getNumberList, getString, getString, getStringList, getStringProperty, setProperty, setProperty
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getResourceHref, setResourceHref
getBoolean, getInteger, getIntegerList, getNumber, getNumberList, getString, getStringList
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public DefaultGroup(InternalDataStore dataStore)
public DefaultGroup(InternalDataStore dataStore, Map<String,Object> properties)
public Map<String,Property> getPropertyDescriptors()
getPropertyDescriptors
in class AbstractResource
public Class<? extends Resource> getResourceClass()
AbstractInstanceResource
Foo
, in this case this method may return Foo.class
.
(Defaults to getClass()
.)getResourceClass
in class AbstractInstanceResource<Group>
public Map<String,Object> getEmbedded()
getEmbedded
in interface Group
public Date getCreated()
getCreated
in interface Group
public Date getLastMembershipUpdated()
getLastMembershipUpdated
in interface Group
public Date getLastUpdated()
getLastUpdated
in interface Group
public List<String> getObjectClass()
getObjectClass
in interface Group
public GroupProfile getProfile()
getProfile
in interface Group
public Group setProfile(GroupProfile profile)
setProfile
in interface Group
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="POST - /api/v1/groups/{groupId}/roles") public Role assignRole(AssignRoleRequest assignRoleRequest, Boolean disableNotifications)
assignRole
in interface Group
assignRoleRequest
- (required)disableNotifications
- (optional)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="POST - /api/v1/groups/{groupId}/roles") public Role assignRole(AssignRoleRequest assignRoleRequest)
assignRole
in interface Group
assignRoleRequest
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="GET - /api/v1/groups/{groupId}/users") public UserList listUsers()
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="PUT - /api/v1/groups/{groupId}") public Group update()
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="DELETE - /api/v1/groups/{groupId}/users/{userId}") public void removeUser(String userId)
removeUser
in interface Group
userId
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="GET - /api/v1/groups/{groupId}/apps") public ApplicationList listApplications()
listApplications
in interface Group
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="DELETE - /api/v1/groups/{groupId}") public void delete()
Copyright © 2017–2023 Okta. All rights reserved.