Package org.openremote.model.security
Class Role
java.lang.Object
org.openremote.model.security.Role
Represents a role; depending on the context then different values will be populated. If getting roles related to a user
then the
isAssigned()
will indicate whether the role is assigned to the user or not and isComposite()
will indicate if it is a composite role. If getting roles for a client then if isComposite()
then the-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]
getId()
getName()
boolean
void
setAssigned
(boolean assigned) void
setAssigned
(Boolean assigned) void
setComposite
(boolean composite) void
setCompositeRoleIds
(String[] compositeRoleIds) setDescription
(String description) void
void
toString()
-
Field Details
-
id
-
name
-
description
-
composite
protected boolean composite -
assigned
-
compositeRoleIds
-
-
Constructor Details
-
Role
public Role() -
Role
-
-
Method Details
-
getId
-
setId
-
getName
-
setName
-
getDescription
-
setDescription
-
setAssigned
-
isAssigned
-
setAssigned
public void setAssigned(boolean assigned) -
isComposite
public boolean isComposite() -
setComposite
public void setComposite(boolean composite) -
getCompositeRoleIds
-
setCompositeRoleIds
-
toString
-