Package com.morpheusdata.model
Class Permission
java.lang.Object
com.morpheusdata.model.MorpheusModel
com.morpheusdata.model.Permission
A model for defining custom access permissions
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<Permission.AccessType>
protected String
protected String
protected String
Fields inherited from class com.morpheusdata.model.MorpheusModel
config, id
-
Constructor Summary
ConstructorDescriptionPermission
(String name, String code, List<Permission.AccessType> availableAccessTypes) Permission
(String name, String code, List<Permission.AccessType> availableAccessTypes, String subCategory) Permission
(String code, List<Permission.AccessType> availableAccessTypes) -
Method Summary
Modifier and TypeMethodDescriptionasMap()
static Permission
static Permission
build
(String name, String code, String subCategory, List<Permission.AccessType> availableAccessTypes) static Permission
build
(String name, String code, List<Permission.AccessType> availableAccessTypes) static Permission
build
(String code, List<Permission.AccessType> availableAccessTypes) getCode()
getName()
void
setAvailableAccessTypes
(List<Permission.AccessType> availableAccessTypes) void
void
void
setSubCategory
(String subCategory) toList()
Methods inherited from class com.morpheusdata.model.MorpheusModel
getConfig, getConfigMap, getConfigProperty, getDirtyProperties, getDirtyPropertyValues, getId, getProperties, isDirty, markClean, markDirty, markDirty, setConfig, setConfigMap, setConfigProperty, setId
-
Field Details
-
name
-
code
-
subCategory
-
availableAccessTypes
-
-
Constructor Details
-
Permission
public Permission() -
Permission
-
Permission
public Permission(String name, String code, List<Permission.AccessType> availableAccessTypes, String subCategory) -
Permission
-
-
Method Details
-
getSubCategory
-
setSubCategory
-
asMap
-
typesAsString
-
build
public static Permission build(String name, String code, String subCategory, List<Permission.AccessType> availableAccessTypes) -
build
public static Permission build(String name, String code, List<Permission.AccessType> availableAccessTypes) -
build
-
build
-
toList
-
getName
-
getCode
-
getAvailableAccessTypes
-
setName
-
setCode
-
setAvailableAccessTypes
-