@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00") public class DefaultRole extends AbstractInstanceResource<Role> implements Role
properties
readLock, writeLock
Constructor and Description |
---|
DefaultRole(InternalDataStore dataStore) |
DefaultRole(InternalDataStore dataStore,
Map<String,Object> properties) |
Modifier and Type | Method and Description |
---|---|
void |
addAdminGroupTarget(String targetGroupId) |
void |
addAllAppsAsTargetToRole()
Success
|
void |
addAppInstanceTargetToAdminRole(String appName,
String applicationId)
Add App Instance Target to App Administrator Role given to a Group
Add App Instance Target to App Administrator Role given to a Group
|
void |
addAppTargetToAdminRole(String appName)
Success
|
void |
addAppTargetToAdminRoleForUser(String appName)
Success
|
void |
addAppTargetToAppAdminRoleForUser(String appName,
String applicationId)
Add App Instance Target to App Administrator Role given to a User
Add App Instance Target to App Administrator Role given to a User
|
RoleAssignmentType |
getAssignmentType() |
Date |
getCreated() |
String |
getDescription() |
Map<String,Object> |
getEmbedded() |
String |
getId() |
String |
getLabel() |
Date |
getLastUpdated() |
Map<String,Object> |
getLinks() |
Map<String,Property> |
getPropertyDescriptors() |
Class<? extends Resource> |
getResourceClass()
Returns the class this resource represents.
|
RoleStatus |
getStatus() |
RoleType |
getType() |
Role |
setAssignmentType(RoleAssignmentType assignmentType) |
Role |
setDescription(String description) |
Role |
setType(RoleType type) |
delete, 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, equals, finalize, getClass, hashCode, 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 DefaultRole(InternalDataStore dataStore)
public DefaultRole(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<Role>
public Map<String,Object> getEmbedded()
getEmbedded
in interface Role
public RoleAssignmentType getAssignmentType()
getAssignmentType
in interface Role
public Role setAssignmentType(RoleAssignmentType assignmentType)
setAssignmentType
in interface Role
public Date getCreated()
getCreated
in interface Role
public String getDescription()
getDescription
in interface Role
public Role setDescription(String description)
setDescription
in interface Role
public Date getLastUpdated()
getLastUpdated
in interface Role
public RoleStatus getStatus()
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="PUT - /api/v1/groups/{groupId}/roles/{roleId}/targets/groups/{targetGroupId}") public void addAdminGroupTarget(String targetGroupId)
addAdminGroupTarget
in interface Role
targetGroupId
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="PUT - /api/v1/users/{userId}/roles/{roleId}/targets/catalog/apps/{appName}") public void addAppTargetToAdminRoleForUser(String appName)
addAppTargetToAdminRoleForUser
in interface Role
appName
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="PUT - /api/v1/groups/{groupId}/roles/{roleId}/targets/catalog/apps/{appName}/{applicationId}") public void addAppInstanceTargetToAdminRole(String appName, String applicationId)
addAppInstanceTargetToAdminRole
in interface Role
appName
- (required)applicationId
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="PUT - /api/v1/users/{userId}/roles/{roleId}/targets/catalog/apps/{appName}/{applicationId}") public void addAppTargetToAppAdminRoleForUser(String appName, String applicationId)
addAppTargetToAppAdminRoleForUser
in interface Role
appName
- (required)applicationId
- (required)@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="PUT - /api/v1/users/{userId}/roles/{roleId}/targets/catalog/apps") public void addAllAppsAsTargetToRole()
addAllAppsAsTargetToRole
in interface Role
@Generated(value="com.okta.swagger.codegen.OktaJavaClientImplCodegen", date="2023-07-07T09:07:53.917-05:00", comments="PUT - /api/v1/groups/{groupId}/roles/{roleId}/targets/catalog/apps/{appName}") public void addAppTargetToAdminRole(String appName)
addAppTargetToAdminRole
in interface Role
appName
- (required)Copyright © 2017–2023 Okta. All rights reserved.