Class RoleInfo
- java.lang.Object
-
- org.apache.archiva.redback.rest.api.model.v2.BaseRoleInfo
-
- org.apache.archiva.redback.rest.api.model.v2.RoleInfo
-
- All Implemented Interfaces:
Serializable
public class RoleInfo extends BaseRoleInfo implements Serializable
Result object for role information.- Since:
- 3.0
- Author:
- Martin Stockhammer
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.archiva.redback.rest.api.model.v2.BaseRoleInfo
assignable, assigned, description, id, isTemplateInstance, modelId, name, permanent, resource
-
-
Constructor Summary
Constructors Constructor Description RoleInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<BaseRoleInfo>
getChildren()
List<String>
getChildRoleIds()
List<String>
getParentRoleIds()
List<Permission>
getPermissions()
int
hashCode()
boolean
isChild()
static RoleInfo
of(Role rbacRole)
void
setChildRoleIds(List<String> childRoleIds)
void
setParentRoleIds(List<String> parentRoleIds)
void
setPermissions(List<Permission> permissions)
String
toString()
-
Methods inherited from class org.apache.archiva.redback.rest.api.model.v2.BaseRoleInfo
addChild, equals, getApplicationId, getDescription, getId, getModelId, getName, getResource, isAssignable, isAssigned, isNotChild, isPermanent, isTemplateInstance, of, ofId, ofName, setApplicationId, setAssignable, setAssigned, setChild, setChildren, setDescription, setId, setModelId, setName, setPermanent, setResource, setTemplateInstance
-
-
-
-
Constructor Detail
-
RoleInfo
public RoleInfo()
-
-
Method Detail
-
getChildren
public List<BaseRoleInfo> getChildren()
- Overrides:
getChildren
in classBaseRoleInfo
-
getChildRoleIds
public List<String> getChildRoleIds()
-
setChildRoleIds
public void setChildRoleIds(List<String> childRoleIds)
-
getPermissions
public List<Permission> getPermissions()
-
setPermissions
public void setPermissions(List<Permission> permissions)
-
getParentRoleIds
public List<String> getParentRoleIds()
-
setParentRoleIds
public void setParentRoleIds(List<String> parentRoleIds)
-
isChild
public boolean isChild()
- Overrides:
isChild
in classBaseRoleInfo
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classBaseRoleInfo
-
toString
public String toString()
- Overrides:
toString
in classBaseRoleInfo
-
-