Package org.bonitasoft.engine.identity
Interface UserMembership
-
- All Superinterfaces:
BonitaObject,Serializable
- All Known Implementing Classes:
UserMembershipImpl
public interface UserMembership extends BonitaObject
represents a relation betweenUserandRoleandGroupinside the organization.A
Usercan be associated with aGroupor aRoleor both. If a User is associated with a Group only, the Role methods of this class will return null or 0. If a user is associated with a Role only, the Group methods of this class will return null or 0.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetAssignedBy()StringgetAssignedByName()DategetAssignedDate()longgetGroupId()StringgetGroupName()StringgetGroupParentPath()longgetId()longgetRoleId()StringgetRoleName()longgetUserId()StringgetUsername()
-
-
-
Method Detail
-
getId
long getId()
- Returns:
- the user membership's id
-
getUserId
long getUserId()
- Returns:
- the user membership's user id
-
getRoleId
long getRoleId()
- Returns:
- the user membership's role id or 0 if the membership is not linked to a
Role
-
getGroupId
long getGroupId()
- Returns:
- the user membership's group id or 0 if the membership is not linked to a
Group
-
getAssignedBy
long getAssignedBy()
- Returns:
- the id of the user that assigned this user membership
-
getAssignedDate
Date getAssignedDate()
- Returns:
- the date this membership was assigned
-
getGroupName
String getGroupName()
- Returns:
- the user membership's group name or null if the membership is not linked to a
Group
-
getRoleName
String getRoleName()
- Returns:
- the user membership's role name or null if the membership is not linked to a
Group
-
getUsername
String getUsername()
- Returns:
- the username of the user that is assigned this membership
-
getAssignedByName
String getAssignedByName()
- Returns:
- the name of the user that created this membership
-
getGroupParentPath
String getGroupParentPath()
- Returns:
- the user membership's parent group path if any
-
-