|
|||||||||
| 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 java.lang.String |
IPP_PARTICIPANT
|
static java.lang.String |
IPP_USER
|
static java.lang.String |
IPP_USERGROUP
|
| Constructor Summary | |
|---|---|
DmsPrincipal(ModelParticipantInfo modelParticipantInfo,
java.lang.String modelId)
Created a DmsPrincipal which identifies a ModelParticipant. |
|
DmsPrincipal(java.lang.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,
java.lang.String realmId)
Created a DmsPrincipal which identifies a User. |
|
| Method Summary | |
|---|---|
static java.lang.String |
getModelParticipantPrincipalName(java.lang.String participantId,
java.lang.String departmentId,
java.lang.String modelId)
Builds a unique principal name for a ModelParticipant. |
java.lang.String |
getName()
|
static java.lang.String |
getUserGroupPrincipalName(java.lang.String userGroupId)
Builds a unique principal name for a UserGroup. |
static java.lang.String |
getUserPrincipalName(java.lang.String userId,
java.lang.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 java.lang.String IPP_USERGROUP
public static final java.lang.String IPP_USER
public static final java.lang.String IPP_PARTICIPANT
| Constructor Detail |
|---|
public DmsPrincipal(java.lang.String name)
name - principal name (will not be prefixed)
public DmsPrincipal(ModelParticipantInfo modelParticipantInfo,
java.lang.String modelId)
modelParticipantInfo - modelId -
public DmsPrincipal(UserInfo userInfo,
java.lang.String realmId)
userInfo - realmId - public DmsPrincipal(UserGroupInfo userGroupInfo)
userGroupInfo - | Method Detail |
|---|
public static java.lang.String getModelParticipantPrincipalName(java.lang.String participantId,
java.lang.String departmentId,
java.lang.String modelId)
participantId - departmentId - modelId -
public static java.lang.String getUserPrincipalName(java.lang.String userId,
java.lang.String realmId)
userId - realmId -
public static java.lang.String getUserGroupPrincipalName(java.lang.String userGroupId)
userGroupId -
public java.lang.String getName()
getName in interface java.security.Principal
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||