@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen",
date="2021-10-11T13:51:56.108-05:00")
public class DefaultGroup
extends AbstractInstanceResource<Group>
implements Group
propertiesreadLock, writeLock| Constructor and Description |
|---|
DefaultGroup(InternalDataStore dataStore) |
DefaultGroup(InternalDataStore dataStore,
java.util.Map<java.lang.String,java.lang.Object> properties) |
| Modifier and Type | Method and Description |
|---|---|
Role |
assignRole(AssignRoleRequest assignRoleRequest)
Assigns a Role to a Group
|
Role |
assignRole(AssignRoleRequest assignRoleRequest,
java.lang.String disableNotifications)
Assigns a Role to a Group
|
void |
delete()
Remove Group
Removes a group with `OKTA_GROUP` type from your organization.
|
java.util.Date |
getCreated() |
java.util.Map<java.lang.String,java.lang.Object> |
getEmbedded() |
java.lang.String |
getId() |
java.util.Date |
getLastMembershipUpdated() |
java.util.Date |
getLastUpdated() |
java.util.Map<java.lang.String,java.lang.Object> |
getLinks() |
java.util.List<java.lang.String> |
getObjectClass() |
GroupProfile |
getProfile() |
java.util.Map<java.lang.String,Property> |
getPropertyDescriptors() |
java.lang.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(java.lang.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.
|
saveclear, 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, valuesgetBoolean, 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, setPropertyclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitgetResourceHref, setResourceHrefgetBoolean, getInteger, getIntegerList, getNumber, getNumberList, getString, getStringListpublic DefaultGroup(InternalDataStore dataStore)
public DefaultGroup(InternalDataStore dataStore, java.util.Map<java.lang.String,java.lang.Object> properties)
public java.util.Map<java.lang.String,Property> getPropertyDescriptors()
getPropertyDescriptors in class AbstractResourcepublic java.lang.Class<? extends Resource> getResourceClass()
AbstractInstanceResourceFoo, in this case this method may return Foo.class.
(Defaults to getClass().)getResourceClass in class AbstractInstanceResource<Group>public java.util.Map<java.lang.String,java.lang.Object> getEmbedded()
getEmbedded in interface Grouppublic java.util.Map<java.lang.String,java.lang.Object> getLinks()
public java.util.Date getCreated()
getCreated in interface Grouppublic java.util.Date getLastMembershipUpdated()
getLastMembershipUpdated in interface Grouppublic java.util.Date getLastUpdated()
getLastUpdated in interface Grouppublic java.util.List<java.lang.String> getObjectClass()
getObjectClass in interface Grouppublic GroupProfile getProfile()
getProfile in interface Grouppublic Group setProfile(GroupProfile profile)
setProfile in interface Group@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen",
date="2021-10-11T13:51:56.108-05:00",
comments="POST - /api/v1/groups/{groupId}/roles")
public Role assignRole(AssignRoleRequest assignRoleRequest,
java.lang.String disableNotifications)
assignRole in interface GroupassignRoleRequest - (required)disableNotifications - (optional)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen",
date="2021-10-11T13:51:56.108-05:00",
comments="POST - /api/v1/groups/{groupId}/roles")
public Role assignRole(AssignRoleRequest assignRoleRequest)
assignRole in interface GroupassignRoleRequest - (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen",
date="2021-10-11T13:51:56.108-05:00",
comments="GET - /api/v1/groups/{groupId}/users")
public UserList listUsers()
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen",
date="2021-10-11T13:51:56.108-05:00",
comments="PUT - /api/v1/groups/{groupId}")
public Group update()
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen",
date="2021-10-11T13:51:56.108-05:00",
comments="DELETE - /api/v1/groups/{groupId}/users/{userId}")
public void removeUser(java.lang.String userId)
removeUser in interface GroupuserId - (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen",
date="2021-10-11T13:51:56.108-05:00",
comments="GET - /api/v1/groups/{groupId}/apps")
public ApplicationList listApplications()
listApplications in interface Group@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen",
date="2021-10-11T13:51:56.108-05:00",
comments="DELETE - /api/v1/groups/{groupId}")
public void delete()
Copyright © 2017-2021 Okta. All Rights Reserved.