Package io.jmix.security.model
Class BaseRole
java.lang.Object
io.jmix.security.model.BaseRole
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ResourceRole,RowLevelRole
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCode()getName()voidsetChildRoles(Set<String> childRoles) voidvoidsetCustomProperties(Map<String, String> customProperties) voidsetDescription(String description) voidsetDescriptionMessageKey(String descriptionMessageKey) voidsetLocalizedDescriptions(String localizedDescriptions) voidsetLocalizedNames(String localizedNames) voidvoidsetNameMessageKey(String nameMessageKey) voidvoidsetTenantId(String tenantId)
-
Constructor Details
-
BaseRole
public BaseRole()
-
-
Method Details
-
getName
-
setName
-
getCode
-
setCode
-
getSource
-
setSource
-
getCustomProperties
-
getDescription
-
setDescription
-
getNameMessageKey
- Returns:
- the key of the message that localizes the name, when the role declares its name as a
msg://reference;getName()then holds the message in the default locale, or the key when that message is missing or blank
-
setNameMessageKey
-
getDescriptionMessageKey
- Returns:
- the key of the message that localizes the description, when the role declares its description as a
msg://reference;getDescription()then holds the message in the default locale, or the key when that message is missing
-
setDescriptionMessageKey
-
getLocalizedNames
- Returns:
- the name localized to other locales, in
Propertiesformat keyed by locale, such asde=Leiter
-
setLocalizedNames
-
getLocalizedDescriptions
- Returns:
- the description localized to other locales, in
Propertiesformat keyed by locale
-
setLocalizedDescriptions
-
getChildRoles
- Returns:
- the codes of the roles whose policies this role includes; for a role defined by an annotated interface, these are the role interfaces it extends
-
setChildRoles
-
setCustomProperties
-
getTenantId
-
setTenantId
-