站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss JBPM 3.1.3 identity management component 英文版文档

Membership (jbpm-identity-3.1.3) - JBoss JBPM 3.1.3 identity management component 英文版文档


org.jbpm.identity
Class Membership

java.lang.Object
  extended by org.jbpm.identity.Entity
      extended by org.jbpm.identity.Membership
All Implemented Interfaces:
java.io.Serializable

public class Membership
extends Entity
implements java.io.Serializable

one association between user and a group. The name of the membership represents the role-name that the user fullfills in the group. A membership can be a position in an organisation, therefor permissions can be associated with a membership. The name of the membership can be used as the role name. Meaning which role does the user fullfill in the group.

See Also:
Serialized Form

Field Summary
protected  Group group
           
protected  java.lang.String role
           
protected  User user
           
 
Fields inherited from class org.jbpm.identity.Entity
name, permissions
 
Constructor Summary
Membership()
           
 
Method Summary
static Membership create(User user, Group group)
           
static Membership create(User user, java.lang.String name, Group group)
           
 Group getGroup()
           
 long getId()
           
 java.lang.String getRole()
           
 User getUser()
           
 void setGroup(Group group)
           
 void setRole(java.lang.String role)
           
 void setUser(User user)
           
 
Methods inherited from class org.jbpm.identity.Entity
addPermission, getName, getPermissions, removePermission
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

role

protected java.lang.String role

user

protected User user

group

protected Group group
Constructor Detail

Membership

public Membership()
Method Detail

create

public static Membership create(User user,
                                java.lang.String name,
                                Group group)

create

public static Membership create(User user,
                                Group group)

setUser

public void setUser(User user)

setGroup

public void setGroup(Group group)

getId

public long getId()
Overrides:
getId in class Entity

getGroup

public Group getGroup()

getUser

public User getUser()

getRole

public java.lang.String getRole()

setRole

public void setRole(java.lang.String role)


Version : jbpm-identity-3.1.3