|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softwareag.mdm.service.Profile
Identifies a user profile for permissions management. Profiles are of three types:
Directory
. For example,
product manager, accountant.
The relationship between each user and the roles he has is defined by the method
DirectoryHandler.isProfileIncluded(Profile, Profile)
.
Session
Field Summary | |
static Role |
ADMINISTRATOR
Built-in Administrator role. |
static Role |
DISTRIBUTOR
Dynamic built-in Distributor role. |
static Role |
EVERYONE
Built-in role, all users have this role. |
static Role |
OWNER
Dynamic built-in owner role. |
static Role |
PROVIDER
Built-in Provider role. |
static Role |
READ_ONLY
Built-in read-only role. |
Method Summary | |
boolean |
equals(Object anObject)
|
static Role |
forBuiltInRole(String roleName)
Returns the built-in role identified by the name specified. |
String |
format()
Serializes a profile reference to a String .
|
static Role |
forSpecificRole(String roleName)
Returns the specific role identified by the name specified. |
static UserReference |
forUser(String userId)
Returns the user reference specified. |
static UserReference |
forUserWithSpecificPrivilege(String userId,
ServiceKey servicePrivilegeGranted)
Returns the user reference specified, with the specific privilege granted. |
static UserReference |
forUserWithSpecificPrivileges(String userId,
Set servicePrivileges)
Returns the user reference specified, with the specific privileges granted. |
String |
getLabel()
Returns a label of this profile. |
int |
hashCode()
|
boolean |
isBuiltIn()
Returns true if this profile is a built-in role. |
boolean |
isBuiltInAdministrator()
|
boolean |
isBuiltInDistributor()
|
boolean |
isBuiltInEveryone()
|
boolean |
isBuiltInOwner()
|
boolean |
isBuiltInProvider()
|
boolean |
isBuiltInReadOnly()
|
boolean |
isSpecificRole()
Returns true if this profile is a specific role. |
boolean |
isUserReference()
Returns true if this profile references a user. |
static Profile |
parse(String aString)
Analyses a string that has been created via format() and returns
the corresponding profile. |
String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final Role ADMINISTRATOR
public static final Role PROVIDER
public static final Role READ_ONLY
A user with role read-only has generally no rights for doing any
modifications on webMethods MDM repository (unless a procedure has explicitly deactivated
access rights controls, see ProcedureContext.setAllPrivileges(boolean)
).
public static final Role OWNER
A
and when he is in the "owner"
profile defined by the root adaptation of A
. Additionnally A
must not be under an agreement (see DISTRIBUTOR
role).
public static final Role DISTRIBUTOR
public static final Role EVERYONE
Method Detail |
public static Role forBuiltInRole(String roleName) throws IllegalArgumentException
roleName
- unique and persistent identifier of the specific role in the directory
IllegalArgumentException
- if the name specified does not correspond to a built-in rolepublic static Role forSpecificRole(String roleName) throws IllegalArgumentException
roleName
- unique and persistent identifier of the specific role in the directory
IllegalArgumentException
public static UserReference forUser(String userId)
Directory.isUserDefined(UserReference)
.
userId
- a unique identifier of a user (usually its login)public static UserReference forUserWithSpecificPrivilege(String userId, ServiceKey servicePrivilegeGranted)
userId
- a unique identifier of a user (usually its login)servicePrivilegeGranted
- grants the user the privilege of executing the service specifiedpublic static UserReference forUserWithSpecificPrivileges(String userId, Set servicePrivileges)
userId
- a unique identifier of a user (usually its login)servicePrivileges
- set of ServiceKey
, grants the user the privilege of executing the services specifiedpublic static Profile parse(String aString) throws IllegalArgumentException
format()
and returns
the corresponding profile.
IllegalArgumentException
- If aString
is invalid.format()
public boolean equals(Object anObject)
public int hashCode()
public boolean isBuiltIn()
true
if this profile is a built-in role.
Role
public boolean isBuiltInAdministrator()
ADMINISTRATOR
public boolean isBuiltInProvider()
PROVIDER
public boolean isBuiltInReadOnly()
READ_ONLY
public boolean isBuiltInDistributor()
DISTRIBUTOR
public boolean isBuiltInEveryone()
EVERYONE
public boolean isBuiltInOwner()
OWNER
public boolean isSpecificRole()
true
if this profile is a specific role.
Role
public String getLabel()
format()
shall be used).
public boolean isUserReference()
true
if this profile references a user.
UserReference
public String toString()
public String format()
String
.
The string returned by this method can be persisted and it shall be
used as argument of the method parse(String)
in order to recreate a
profile reference.
parse(String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
(report a bug)
webMethods MDM 4.2.8 [0558]
Copyright Software AG 2000-2007. All rights reserved.