|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.iplanet.portalserver.profile.Profile
Profile class provides common methods to get/set/delete profile
attributes. This class also provides methods to verify user access privileges.
| Field Summary | |
static int |
ALL
All profile types |
static int |
APPEND
Append attribute value |
static int |
APPLICATION
Application profile type |
static int |
DELETE
Delete attribute value |
static int |
DOMAIN
Domain profile type |
static int |
NEW
New attribute value i.e replace old value |
static int |
PREFIX
Prefix matching |
static int |
REGULAR
Regular matching i.e match all |
static int |
ROLE
Rrole profile type |
static int |
SUFFIX
Suffix matching |
static int |
USER
User profile type |
| Method Summary | |
void |
addProfileListener(ProfileListener l)
Adds specified profile listener to receive any profile change events from this profile. |
void |
delAttribute(java.lang.String name)
Deletes attribute from profile. |
void |
delAttributes(java.lang.String wildchar)
Deletes attributes which match wildchar expression from profile. |
java.util.Enumeration |
getAttribute(java.lang.String name)
Gets attribute value. |
java.util.Hashtable |
getAttributes()
Gets hashtable of profile attributes. |
java.util.Hashtable |
getAttributes(java.lang.String wildchar)
Gets hashtable of profile attributes. |
java.lang.String |
getAttributeString(java.lang.String name)
Gets string type attribute value. |
java.util.Enumeration |
getPrivilegeNames()
Gets privilege names belong to this profile . |
java.util.Enumeration |
getPrivilegeNames(java.lang.String wildchar)
Gets privilege names which match wildchar expression. |
java.lang.String |
getProfileName()
Gets Profile name. |
int |
getProfileType()
Gets Profile type. |
boolean |
isAllowed(java.lang.String privilege)
Checks user privilege. |
boolean |
isAllowed(java.lang.String privilege,
java.lang.String value,
int match)
Checks user privilege. |
boolean |
isAllowedIgnoreCase(java.lang.String privilege,
java.lang.String value,
int match)
Checks user privilege. |
void |
loadAttributes(java.util.Set attributeNames)
Load attribute values based on attribute names. |
void |
loadPrivileges(java.util.Set privilegeNames)
Load privilege values based on privilege names. |
void |
removeProfileListener(ProfileListener l)
Removes specified profile listener so that it doesn't receive profile change events from this profile. |
void |
setAttribute(java.lang.String name,
java.util.Enumeration value,
int operation)
Sets attribute value based on operation. |
void |
setAttributeString(java.lang.String name,
java.lang.String value,
int operation)
Sets value of string type attribute. |
void |
store(boolean force)
Stores profile data in the profile database. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final int REGULAR
public static final int SUFFIX
public static final int PREFIX
public static final int DELETE
public static final int APPEND
public static final int NEW
public static final int APPLICATION
public static final int DOMAIN
public static final int USER
public static final int ROLE
public static final int ALL
| Method Detail |
public java.lang.String getAttributeString(java.lang.String name)
throws ProfileException
name - Attribute namegetAttribute(java.lang.String)
public java.util.Enumeration getAttribute(java.lang.String name)
throws ProfileException
name - Attribute namegetAttributeString(java.lang.String)
public java.util.Hashtable getAttributes()
throws ProfileException
public java.util.Hashtable getAttributes(java.lang.String wildchar)
throws ProfileException
wildchar - Wildchar expression
public void setAttributeString(java.lang.String name,
java.lang.String value,
int operation)
throws ProfileException
name - Attribute namevalue - Attribute valueoperation - Profile.NEW or Profile.APPEND or Profile.DELETEsetAttribute(java.lang.String, java.util.Enumeration, int)
public void setAttribute(java.lang.String name,
java.util.Enumeration value,
int operation)
throws ProfileException
name - Attribute namevalue - Attribute valueoperation - Profile.NEW or Profile.APPEND or Profile.DELETEsetAttributeString(java.lang.String, java.lang.String, int)
public void delAttribute(java.lang.String name)
throws ProfileException
name - Attribute name
public void delAttributes(java.lang.String wildchar)
throws ProfileException
wildchar - Wildchar expressionpublic void addProfileListener(ProfileListener l)
l - The profile listener to be added.public void removeProfileListener(ProfileListener l)
l - The profile listener to be removed.
public void store(boolean force)
throws ProfileException
force - If true profile changes are propagated to child profiles
which inherit this profile. If false profile changes are not propagated.
public boolean isAllowed(java.lang.String privilege)
throws ProfileException
privilege - Privilege name
public boolean isAllowed(java.lang.String privilege,
java.lang.String value,
int match)
throws ProfileException
privilege - Privilege namevalue - Privilege valuematch - Profile.REGULAR or Profile.SUFFIX or Profile.PREFIX
public boolean isAllowedIgnoreCase(java.lang.String privilege,
java.lang.String value,
int match)
throws ProfileException
privilege - Privilege namevalue - Privilege valuematch - Profile.REGULAR or Profile.SUFFIX or Profile.PREFIX
public void loadPrivileges(java.util.Set privilegeNames)
throws ProfileException
privilegeNames - A set of privilege names
public void loadAttributes(java.util.Set attributeNames)
throws ProfileException
attributeNames - A set of attribute names, may contain wildchar
public java.util.Enumeration getPrivilegeNames()
throws ProfileException
public java.util.Enumeration getPrivilegeNames(java.lang.String wildchar)
throws ProfileException
wildchar - Wildchar expressionpublic java.lang.String getProfileName()
public int getProfileType()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||