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 boolean
equals(Object o)
String
getPrincipal()
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.Date
getTimestamp()
int
hashCode()
boolean
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 the user principal object for this association.void
setRoleIds(List<String> roleIds)
void
setRoleNames(List<String> roles)
Set the roles names for this user.void
setTimestamp(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:UserAssignment
The 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:
getPrincipal
in interfaceUserAssignment
- Returns:
- the principal for the User.
-
getRoleNames
public List<String> getRoleNames()
Description copied from interface:UserAssignment
Get the roles for this user.- Specified by:
getRoleNames
in interfaceUserAssignment
- Returns:
- List of <
String
> objects representing the Role Names.
-
setPrincipal
public void setPrincipal(String principal)
Description copied from interface:UserAssignment
Set the user principal object for this association. NOTE: This field is considered the Primary Key for this object.- Specified by:
setPrincipal
in interfaceUserAssignment
-
setRoleNames
public void setRoleNames(List<String> roles)
Description copied from interface:UserAssignment
Set the roles names for this user.- Specified by:
setRoleNames
in interfaceUserAssignment
- Parameters:
roles
- the List of <String
> objects representing the Role Names.
-
getRoleIds
public List<String> getRoleIds()
- Specified by:
getRoleIds
in interfaceUserAssignment
-
setRoleIds
public void setRoleIds(List<String> roleIds)
- 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.
-
getTimestamp
public Date getTimestamp()
-
setTimestamp
public void setTimestamp(Date timestamp)
-
-