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 boolean
equals(Object other)
Method equalsString
getPrincipal()
Get nullList<String>
getRoleIds()
List<String>
getRoleNames()
Method getRolesint
hashCode()
Method hashCodeboolean
isPermanent()
Test to see if the object is a permanent object or not.void
setPermanent(boolean permanent)
Set flag indicating if the object is a permanent object or not.void
setPrincipal(String principal)
Set nullvoid
setRoleIds(List<String> roles)
void
setRoleNames(List<String> roles)
Set nullString
toString()
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:
getPrincipal
in interfaceUserAssignment
- Returns:
- the principal for the User.
-
getRoleNames
public List<String> getRoleNames()
Method getRoles- Specified by:
getRoleNames
in interfaceUserAssignment
- Returns:
- List of <
String
> objects representing the Role Names.
-
getRoleIds
public List<String> getRoleIds()
- Specified by:
getRoleIds
in interfaceUserAssignment
-
setPrincipal
public void setPrincipal(String principal)
Set null- Specified by:
setPrincipal
in interfaceUserAssignment
- Parameters:
principal
-
-
setRoleNames
public void setRoleNames(List<String> roles)
Set null- Specified by:
setRoleNames
in interfaceUserAssignment
- Parameters:
roles
-
-
setRoleIds
public void setRoleIds(List<String> roles)
- Specified by:
setRoleIds
in interfaceUserAssignment
-
isPermanent
public boolean isPermanent()
Description copied from interface:UserAssignment
Test to see if the object is a permanent object or not.- Specified by:
isPermanent
in interfaceUserAssignment
- Returns:
- true if the object is permanent.
-
setPermanent
public void setPermanent(boolean permanent)
Description copied from interface:UserAssignment
Set flag indicating if the object is a permanent object or not.- Specified by:
setPermanent
in interfaceUserAssignment
- Parameters:
permanent
- true if the object is permanent.
-
-