Class BaseRoleInfo
- java.lang.Object
-
- org.apache.archiva.redback.rest.api.model.v2.BaseRoleInfo
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
RoleInfo
public class BaseRoleInfo extends Object implements Serializable
Basic role information. This class contains only the standard attributes used for displaying a role.- Author:
- Martin Stockhammer
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanassignableprotected booleanassignedprotected Stringdescriptionprotected Stringidprotected booleanisTemplateInstanceprotected StringmodelIdprotected Stringnameprotected booleanpermanentprotected Stringresource
-
Constructor Summary
Constructors Constructor Description BaseRoleInfo()
-
Method Summary
-
-
-
Field Detail
-
description
protected String description
-
permanent
protected boolean permanent
-
isTemplateInstance
protected boolean isTemplateInstance
-
assignable
protected boolean assignable
-
assigned
protected boolean assigned
-
-
Constructor Detail
-
BaseRoleInfo
public BaseRoleInfo()
-
-
Method Detail
-
ofName
public static BaseRoleInfo ofName(String name)
-
ofId
public static BaseRoleInfo ofId(String id)
-
of
public static BaseRoleInfo of(Role rbacRole)
-
of
public static <T extends BaseRoleInfo> T of(Role rbacRole, T role)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
isPermanent
public boolean isPermanent()
-
setPermanent
public void setPermanent(boolean permanent)
-
getModelId
public String getModelId()
-
setModelId
public void setModelId(String modelId)
-
getResource
public String getResource()
-
setResource
public void setResource(String resource)
-
isTemplateInstance
public boolean isTemplateInstance()
-
setTemplateInstance
public void setTemplateInstance(boolean templateInstance)
-
getChildren
public List<BaseRoleInfo> getChildren()
-
setChildren
public void setChildren(List<BaseRoleInfo> children)
-
addChild
public void addChild(BaseRoleInfo child)
-
isAssigned
public boolean isAssigned()
-
setAssigned
public void setAssigned(boolean assigned)
-
isAssignable
public boolean isAssignable()
-
setAssignable
public void setAssignable(boolean assignable)
-
getApplicationId
public String getApplicationId()
-
setApplicationId
public void setApplicationId(String applicationId)
-
isChild
public boolean isChild()
-
setChild
public void setChild(boolean child)
-
isNotChild
public boolean isNotChild()
-
-