Class Role
- java.lang.Object
-
- org.apache.archiva.redback.rest.api.model.v2.Role
-
- All Implemented Interfaces:
Serializable
public class Role extends Object implements Serializable
This class is used for role update. Contains only the role attributes, that can be updated.- Author:
- Martin Stockhammer
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Booleanassignableprotected List<BaseUserInfo>assignedUsersThe ids of all the assigned users.protected Stringdescriptionprotected Stringidprotected Stringnameprotected Booleanpermanent
-
Constructor Summary
Constructors Constructor Description Role()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAssignedUser(BaseUserInfo id)List<BaseUserInfo>getAssignedUsers()StringgetDescription()StringgetId()StringgetName()BooleangetPermanent()BooleanisAssignable()BooleanisPermanent()voidsetAssignable(Boolean assignable)voidsetAssignedUsers(List<BaseUserInfo> assignedUsers)voidsetDescription(String description)voidsetId(String id)voidsetName(String name)voidsetPermanent(Boolean permanent)
-
-
-
Field Detail
-
description
protected String description
-
assignable
protected Boolean assignable
-
assignedUsers
protected List<BaseUserInfo> assignedUsers
The ids of all the assigned users.
-
-
Constructor Detail
-
Role
public Role()
-
-
Method Detail
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
isPermanent
public Boolean isPermanent()
-
isAssignable
public Boolean isAssignable()
-
getAssignedUsers
public List<BaseUserInfo> getAssignedUsers()
-
setAssignedUsers
public void setAssignedUsers(List<BaseUserInfo> assignedUsers)
-
addAssignedUser
public void addAssignedUser(BaseUserInfo id)
-
getPermanent
public Boolean getPermanent()
-
setPermanent
public void setPermanent(Boolean permanent)
-
setAssignable
public void setAssignable(Boolean assignable)
-
-