Package io.jmix.security.model
Class ResourceRole
java.lang.Object
io.jmix.security.model.BaseRole
io.jmix.security.model.ResourceRole
Class is a container for security resource policies.
Resource policies define permissions for resources. A resource may be a screen, entity CRUD operation, entity attribute, etc.
Role objects may be created from different sources:
- from interfaces annotated with
ResourceRole
- from database Role entities
- created explicitly by the application
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setAllResourcePolicies
(Collection<ResourcePolicy> allResourcePolicies) void
setResourcePolicies
(Collection<ResourcePolicy> resourcePolicies) void
Methods inherited from class io.jmix.security.model.BaseRole
getChildRoles, getCode, getCustomProperties, getDescription, getName, getSource, getTenantId, setChildRoles, setCode, setCustomProperties, setDescription, setName, setSource, setTenantId
-
Constructor Details
-
ResourceRole
public ResourceRole()
-
-
Method Details
-
getScopes
-
setScopes
-
getResourcePolicies
-
setResourcePolicies
-
getAllResourcePolicies
-
setAllResourcePolicies
-