|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.stardust.engine.extensions.dms.data.DmsPrincipal
public class DmsPrincipal
A DmsPrincipal represents an identifiable IPP entity; either User, UserGroup or ModelParticipant. It is used to identify the IPP entity as a unique Principal when assigning access control policies for documents or folders.
| Field Summary | |
|---|---|
static String |
IPP_PARTICIPANT
|
static String |
IPP_USER
|
static String |
IPP_USERGROUP
|
| Constructor Summary | |
|---|---|
DmsPrincipal(ModelParticipantInfo modelParticipantInfo,
Department department,
String modelId)
Created a DmsPrincipal which identifies a ModelParticipant. |
|
DmsPrincipal(ModelParticipantInfo modelParticipantInfo,
org.eclipse.stardust.engine.core.runtime.beans.IDepartment department,
String modelId)
Created a DmsPrincipal which identifies a ModelParticipant. |
|
DmsPrincipal(ModelParticipantInfo modelParticipantInfo,
String modelId)
Created a DmsPrincipal which identifies a ModelParticipant. |
|
DmsPrincipal(String name)
Deprecated. please use the other constructors which ensure an unique name based on an IPP entity. |
|
DmsPrincipal(UserGroupInfo userGroupInfo)
Created a DmsPrincipal which identifies a UserGroup. |
|
DmsPrincipal(UserInfo userInfo,
String realmId)
Created a DmsPrincipal which identifies a User. |
|
| Method Summary | |
|---|---|
static String |
getFullDepartmentScopedId(Department department)
|
static String |
getFullDepartmentScopedId(org.eclipse.stardust.engine.core.runtime.beans.IDepartment department)
|
static String |
getModelParticipantPrincipalName(String participantId,
String departmentId,
String modelId)
Builds a unique principal name for a ModelParticipant. |
String |
getName()
|
static String |
getUserGroupPrincipalName(String userGroupId)
Builds a unique principal name for a UserGroup. |
static String |
getUserPrincipalName(String userId,
String realmId)
Builds a unique principal name for a User. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.security.Principal |
|---|
equals, hashCode, toString |
| Field Detail |
|---|
public static final String IPP_USERGROUP
public static final String IPP_USER
public static final String IPP_PARTICIPANT
| Constructor Detail |
|---|
public DmsPrincipal(String name)
name - principal name (will not be prefixed)
public DmsPrincipal(ModelParticipantInfo modelParticipantInfo,
String modelId)
modelParticipantInfo - modelId -
public DmsPrincipal(ModelParticipantInfo modelParticipantInfo,
Department department,
String modelId)
modelParticipantInfo - department - modelId -
public DmsPrincipal(ModelParticipantInfo modelParticipantInfo,
org.eclipse.stardust.engine.core.runtime.beans.IDepartment department,
String modelId)
modelParticipantInfo - department - modelId -
public DmsPrincipal(UserInfo userInfo,
String realmId)
userInfo - realmId - public DmsPrincipal(UserGroupInfo userGroupInfo)
userGroupInfo - | Method Detail |
|---|
public static String getFullDepartmentScopedId(Department department)
public static String getFullDepartmentScopedId(org.eclipse.stardust.engine.core.runtime.beans.IDepartment department)
public static String getModelParticipantPrincipalName(String participantId,
String departmentId,
String modelId)
participantId - departmentId - departmentId must be fully scoped. e.g. "d2.d1.root"modelId -
public static String getUserPrincipalName(String userId,
String realmId)
userId - realmId -
public static String getUserGroupPrincipalName(String userGroupId)
userGroupId -
public String getName()
getName in interface Principal
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||