Class JpaUserAssignment
- java.lang.Object
-
- org.apache.archiva.redback.rbac.AbstractUserAssignment
-
- org.apache.archiva.redback.rbac.jpa.model.JpaUserAssignment
-
- All Implemented Interfaces:
Serializable,UserAssignment
@Entity public class JpaUserAssignment extends AbstractUserAssignment implements UserAssignment, Serializable
Created by Martin Stockhammeron 26.09.16. - See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JpaUserAssignment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetPrincipal()The principal for the User that the set of roles is associated with.List<String>getRoleIds()List<String>getRoleNames()Get the roles for this user.DategetTimestamp()inthashCode()booleanisPermanent()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 the user principal object for this association.voidsetRoleIds(List<String> roleIds)voidsetRoleNames(List<String> roles)Set the roles names for this user.voidsetTimestamp(Date timestamp)-
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, toString, wait, wait, wait
-
Methods inherited from interface org.apache.archiva.redback.rbac.UserAssignment
addRoleId, addRoleId, addRoleName, addRoleName, removeRoleId, removeRoleId, removeRoleName, removeRoleName
-
-
-
-
Constructor Detail
-
JpaUserAssignment
public JpaUserAssignment()
-
-
Method Detail
-
getPrincipal
public String getPrincipal()
Description copied from interface:UserAssignmentThe principal for the User that the set of roles is associated with. NOTE: This field is considered the Primary Key for this object.- Specified by:
getPrincipalin interfaceUserAssignment- Returns:
- the principal for the User.
-
getRoleNames
public List<String> getRoleNames()
Description copied from interface:UserAssignmentGet the roles for this user.- Specified by:
getRoleNamesin interfaceUserAssignment- Returns:
- List of <
String> objects representing the Role Names.
-
setPrincipal
public void setPrincipal(String principal)
Description copied from interface:UserAssignmentSet the user principal object for this association. NOTE: This field is considered the Primary Key for this object.- Specified by:
setPrincipalin interfaceUserAssignment
-
setRoleNames
public void setRoleNames(List<String> roles)
Description copied from interface:UserAssignmentSet the roles names for this user.- Specified by:
setRoleNamesin interfaceUserAssignment- Parameters:
roles- the List of <String> objects representing the Role Names.
-
getRoleIds
public List<String> getRoleIds()
- Specified by:
getRoleIdsin interfaceUserAssignment
-
setRoleIds
public void setRoleIds(List<String> roleIds)
- 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.
-
getTimestamp
public Date getTimestamp()
-
setTimestamp
public void setTimestamp(Date timestamp)
-
-