Class SpecialPrincipal
- java.lang.Object
-
- com.filenet.api.constants.SpecialPrincipal
-
- All Implemented Interfaces:
- java.io.Serializable
public class SpecialPrincipal extends java.lang.Object implements java.io.SerializableExposes three special principal types as string constants:#AUTHENTICATED-USERS,#CREATOR-OWNERand#REALM-USERS(qualifier). These principal types are not real directory service entities; they represent special pseudo-accounts.The
#AUTHENTICATED-USERSpseudo-account is a logical group, all of whose members are authenticated users. Note that users that were found in aDirectoryConfigurationthat had itsExcludeFromAUproperty settruewill not be a member of#AUTHENTICATED-USERS.The
#CREATOR-OWNERprincipal is the pseudo-account granted to the user who creates an object. It is a placeholder for the future owner of an object. A specific set of permissions (ACL) is defined for this account. These permissions provide full control over the created object. When the ACL is actually used, the real identity of the user accessing the object is substituted and becomes the actual owner ID. This occurs in the following instances:- When security templates are applied.
- When an object inherits security from a parent.
- When a security descriptor is initialized from the class's default instance security. An
exception to this rule is when the object's
DefaultInstanceOwnerproperty is set tonull, in which case permissions from the default instance security that specify#CREATOR-OWNERas the grantee are ignored and not copied to thePermissionscollection of the created object.
The
#REALM-USERS(qualifier)principal is a pseudo-group whose members are all users that were found in theRealmspecified by qualifier, which may be either thatRealm'sSymbolicNameor itsIdstring.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static SpecialPrincipalAUTHENTICATED_USERSSpecifies aSpecialPrincipalthat is a group of authenticated users.static SpecialPrincipalCREATOR_OWNERSpecifies aSpecialPrincipalthat is the#CREATOR-OWNERaccount.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description static SpecialPrincipalgetInstanceFromString(java.lang.String value)Deprecated.As of P8 5.2.2, and will be removed in a later release.java.lang.StringgetValue()Returns aStringassociated with a specific instance of this class.static booleanisAuthenticatedUsers(java.lang.String principal)Return whether or not this principal is the special#AUTHENTICATED-USERSpseudo-group.static booleanisCreatorOwner(java.lang.String principal)Return whether or not this principal is the special#CREATOR-OWNERpseudo-user.static booleanisRealmUsers(java.lang.String principal)Return whether or not this principal is the special#REALM-USERS(realmNameOrId)pseudo-group.static java.lang.StringparseRealmUsers(java.lang.String principal)Return the realm name or ID string part of a#REALM-USERSprincipal or null if this is not a syntactically correct#REALM-USERSprincipal (the name or ID part is not checked for validity).static SpecialPrincipalREALM_USERS(Realm realm)Return aSpecialPrincipalobject for a #REALM-USERS(realm)static SpecialPrincipalREALM_USERS(java.lang.String qualifier)Return aSpecialPrincipalobject for a #REALM-USERS(qualifier)java.lang.StringtoString()Returns aStringrepresentation of thisSpecialPrincipalinstance.
-
-
-
Field Detail
-
AUTHENTICATED_USERS
public static final SpecialPrincipal AUTHENTICATED_USERS
Specifies aSpecialPrincipalthat is a group of authenticated users.Note: Specifying that
#AUTHENTICATED-USERSbe the default user/group of an object store would permit all users who successfully logon to the FileNet P8 domain to access that object store.
-
CREATOR_OWNER
public static final SpecialPrincipal CREATOR_OWNER
Specifies aSpecialPrincipalthat is the#CREATOR-OWNERaccount.
-
-
Method Detail
-
getValue
public java.lang.String getValue()
Returns aStringassociated with a specific instance of this class. The value will be eitherAUTHENTICATED_USERSorCREATOR_OWNER.- Returns:
- A
Stringrepresenting a specific instance of this class.
-
getInstanceFromString
public static SpecialPrincipal getInstanceFromString(java.lang.String value)
Deprecated. As of P8 5.2.2, and will be removed in a later release.Returns an instance of this class based on the specified value.- Parameters:
value- AStringrepresenting theSpecialPrincipalto retrieve. Valid values areAUTHENTICATED_USERS,CREATOR_OWNERandREALM_USERS; additionally REALM_USERS may have an optional appended (domain id). The value cannot benull.- Returns:
- A
SpecialPrincipalobject of the type requested ornullif this doesn't appear to be a special '#' principal. - Throws:
EngineRuntimeException- if the input parameter is invalid ornull.
-
REALM_USERS
public static SpecialPrincipal REALM_USERS(java.lang.String qualifier)
Return aSpecialPrincipalobject for a #REALM-USERS(qualifier)- Parameters:
qualifier- either aRealm'sSymbolicNameor itsIdin string form.- Returns:
- a
SpecialPrincipalrepresenting the #REALM-USERS special principal for the given realm
-
REALM_USERS
public static SpecialPrincipal REALM_USERS(Realm realm)
Return aSpecialPrincipalobject for a #REALM-USERS(realm)- Parameters:
realm- theRealmobject to be used for this #REALM-USERS principal- Returns:
- a
SpecialPrincipalrepresenting the #REALM-USERS special principal for the given realm
-
isAuthenticatedUsers
public static boolean isAuthenticatedUsers(java.lang.String principal)
Return whether or not this principal is the special#AUTHENTICATED-USERSpseudo-group.- Parameters:
principal- the principal string to test- Returns:
- true if this principal is the special
#AUTHENTICATED-USERSpseudo-group or false otherwise.
-
isCreatorOwner
public static boolean isCreatorOwner(java.lang.String principal)
Return whether or not this principal is the special#CREATOR-OWNERpseudo-user.- Parameters:
principal- the principal string to test- Returns:
- true if this principal is the special
#CREATOR-OWNERpseudo-user or false otherwise.
-
isRealmUsers
public static boolean isRealmUsers(java.lang.String principal)
Return whether or not this principal is the special#REALM-USERS(realmNameOrId)pseudo-group.- Parameters:
principal- the principal string to test- Returns:
- true if this principal is the special
#REALM-USERS(realmNameOrId)pseudo-group or false otherwise.
-
parseRealmUsers
public static java.lang.String parseRealmUsers(java.lang.String principal)
Return the realm name or ID string part of a#REALM-USERSprincipal or null if this is not a syntactically correct#REALM-USERSprincipal (the name or ID part is not checked for validity).- Parameters:
principal- the principal name, which should be in the form of"#REALM-USERS(realmNameOrId)".- Returns:
- the given realm symbolic name or ID string of the given
#REALM-USERSprincipal. If this does not appear to be a valid#REALM-USERS,nullwill be returned.
-
toString
public java.lang.String toString()
Returns aStringrepresentation of thisSpecialPrincipalinstance.- Overrides:
toStringin classjava.lang.Object- Returns:
- A
Stringrepresenting thisSpecialPrincipal.
-
-