Class MemoryUserAssignment
- java.lang.Object
-
- org.apache.archiva.redback.rbac.AbstractUserAssignment
-
- org.apache.archiva.redback.rbac.memory.MemoryUserAssignment
-
- All Implemented Interfaces:
Serializable,UserAssignment
public class MemoryUserAssignment extends AbstractUserAssignment implements UserAssignment, Serializable
MemoryUserAssignment- Author:
- Joakim Erdfelt
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MemoryUserAssignment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)Method equalsStringgetPrincipal()Get nullList<String>getRoleIds()List<String>getRoleNames()Method getRolesinthashCode()Method hashCodebooleanisPermanent()Test to see if the object is a permanent object or not.voidsetPermanent(boolean permanent)Set flag indicating if the object is a permanent object or not.voidsetPrincipal(String principal)Set nullvoidsetRoleIds(List<String> roles)voidsetRoleNames(List<String> roles)Set nullStringtoString()Method toString-
Methods inherited from class org.apache.archiva.redback.rbac.AbstractUserAssignment
addRoleId, addRoleId, addRoleName, addRoleName, removeRoleId, removeRoleId, removeRoleName, removeRoleName
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.archiva.redback.rbac.UserAssignment
addRoleId, addRoleId, addRoleName, addRoleName, removeRoleId, removeRoleId, removeRoleName, removeRoleName
-
-
-
-
Constructor Detail
-
MemoryUserAssignment
public MemoryUserAssignment()
-
-
Method Detail
-
getPrincipal
public String getPrincipal()
Get null- Specified by:
getPrincipalin interfaceUserAssignment- Returns:
- the principal for the User.
-
getRoleNames
public List<String> getRoleNames()
Method getRoles- Specified by:
getRoleNamesin interfaceUserAssignment- Returns:
- List of <
String> objects representing the Role Names.
-
getRoleIds
public List<String> getRoleIds()
- Specified by:
getRoleIdsin interfaceUserAssignment
-
setPrincipal
public void setPrincipal(String principal)
Set null- Specified by:
setPrincipalin interfaceUserAssignment- Parameters:
principal-
-
setRoleNames
public void setRoleNames(List<String> roles)
Set null- Specified by:
setRoleNamesin interfaceUserAssignment- Parameters:
roles-
-
setRoleIds
public void setRoleIds(List<String> roles)
- Specified by:
setRoleIdsin interfaceUserAssignment
-
isPermanent
public boolean isPermanent()
Description copied from interface:UserAssignmentTest to see if the object is a permanent object or not.- Specified by:
isPermanentin interfaceUserAssignment- Returns:
- true if the object is permanent.
-
setPermanent
public void setPermanent(boolean permanent)
Description copied from interface:UserAssignmentSet flag indicating if the object is a permanent object or not.- Specified by:
setPermanentin interfaceUserAssignment- Parameters:
permanent- true if the object is permanent.
-
-