|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ProfileWrapper is a lightweight object that can be used to access a user or group profile. To retrieve a ProfileWrapper, use the ProfileFactory. Once a ProfileWrapper is retrieved, it knows how to access the correct ProfileManager session bean(s) based on the identity it was initialized with. If it was initialized with both a user and group name, the group will be used as an explicit successor for all getProperty methods that do not take an explicit successor. If an explicit successor is provided to the getProperty methods, that one will override the group that this object was initialized with. When specifying a successor for user and group profiles, it will always be the name of the group; because users and groups always use groups as their successors.
com.bea.p13n.profile.ProfileFactory
Method Summary | |
ProfileIdentity |
getProfileIdentity()
Get the current identity of this profile |
java.lang.Object |
getProperty(java.lang.String propertySet,
java.lang.String propertyName)
Get a property from the profile. |
java.lang.Object |
getProperty(java.lang.String propertySet,
java.lang.String propertyName,
java.lang.String successor)
Get a property from the profile. |
java.lang.String |
getPropertyAsString(java.lang.String propertySet,
java.lang.String propertyName)
Get a property from the profile, converted to a String If the property is not found, the default value from the property set will be returned. |
java.lang.String |
getPropertyAsString(java.lang.String propertySet,
java.lang.String propertyName,
java.lang.String successor)
Get a property from the profile. |
java.lang.String |
getSuccessor(java.lang.String propertySet)
Retrieve the successor for the specified property set. |
java.lang.Object |
removeProperty(java.lang.String propertySet,
java.lang.String propertyName)
Remove a property from the profile |
void |
removeSuccessor(java.lang.String propertySet)
Remove the successor for the specified property set. |
void |
setProperty(java.lang.String propertySet,
java.lang.String propertyName,
java.lang.Object value)
Set a property in the profile |
void |
setSuccessor(java.lang.String propertySet,
java.lang.String successor)
Set the successor for the specified property set |
void |
validateProfile()
Ensure that the profile represented by this object is valid |
Method Detail |
public ProfileIdentity getProfileIdentity()
public java.lang.Object getProperty(java.lang.String propertySet, java.lang.String propertyName) throws java.rmi.RemoteException, ProfileNotFoundException
propertySet
- the property set containing the propertypropertyName
- the name of the property to retrievepublic java.lang.String getPropertyAsString(java.lang.String propertySet, java.lang.String propertyName) throws java.rmi.RemoteException, ProfileNotFoundException
propertySet
- the property set containing the propertypropertyName
- the name of the property to retrievepublic void setProperty(java.lang.String propertySet, java.lang.String propertyName, java.lang.Object value) throws PropertyValidationException, java.rmi.RemoteException, ProfileNotFoundException
propertySet
- the property set containing the propertypropertyName
- the name of the property to retrievevalue
- the new value for the propertypublic java.lang.Object removeProperty(java.lang.String propertySet, java.lang.String propertyName) throws java.rmi.RemoteException, ProfileNotFoundException
propertySet
- the property set containing the propertypropertyName
- the name of the property to retrievepublic java.lang.Object getProperty(java.lang.String propertySet, java.lang.String propertyName, java.lang.String successor) throws java.rmi.RemoteException, ProfileNotFoundException
propertySet
- the property set containing the propertypropertyName
- the name of the property to retrievesuccessor
- a profile to use as an explicit successorpublic java.lang.String getPropertyAsString(java.lang.String propertySet, java.lang.String propertyName, java.lang.String successor) throws java.rmi.RemoteException, ProfileNotFoundException
propertySet
- the property set containing the propertypropertyName
- the name of the property to retrievesuccessor
- a profile to use as an explicit successorpublic java.lang.String getSuccessor(java.lang.String propertySet) throws java.rmi.RemoteException, ProfileNotFoundException
propertySet
- The name of the property setpublic void removeSuccessor(java.lang.String propertySet) throws java.rmi.RemoteException, ProfileNotFoundException
propertySet
- The name of the property setpublic void setSuccessor(java.lang.String propertySet, java.lang.String successor) throws java.rmi.RemoteException, ProfileNotFoundException
propertySet
- The name of the property setsuccessor
- the name of the successor profile to setpublic void validateProfile() throws java.rmi.RemoteException, ProfileNotFoundException, SuccessorNotFoundException
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |