|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | 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.
ProfileFactory
Method Summary | |
ProfileIdentity |
getProfileIdentity()
Get the current identity of this profile |
EntityPropertyCache |
getProperties()
|
EntityPropertyCache |
getProperties(Set propertyMapKeys)
|
EntityPropertyCache |
getProperties(String propertySetName)
|
Object |
getProperty(String propertySet,
String propertyName)
Get a property from the profile. |
Object |
getProperty(String propertySet,
String propertyName,
String successor)
Get a property from the profile. |
String |
getPropertyAsString(String propertySet,
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. |
String |
getPropertyAsString(String propertySet,
String propertyName,
String successor)
Get a property from the profile. |
String |
getSuccessor(String propertySet)
Retrieve the successor for the specified property set. |
ProfileType |
getType()
Get profile type. |
String |
getUsername()
Get the current username of this profile |
boolean |
isType(ProfileType type)
Compare this profile type with another. |
Object |
removeProperty(String propertySet,
String propertyName)
Remove a property from the profile |
void |
removeSuccessor(String propertySet)
Remove the successor for the specified property set. |
void |
setProperties(EntityPropertyCache cache)
Set properties in the profile, taken from the input cache. |
void |
setProperty(String propertySet,
String propertyName,
Object value)
Set a property in the profile |
void |
setSuccessor(String propertySet,
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 EntityPropertyCache getProperties() throws RemoteException, ProfileNotFoundException
RemoteException
ProfileNotFoundException
EntityPropertyCache
,
PropertyMapKey
public EntityPropertyCache getProperties(Set propertyMapKeys) throws RemoteException, ProfileNotFoundException
RemoteException
ProfileNotFoundException
EntityPropertyCache
,
PropertyMapKey
public EntityPropertyCache getProperties(String propertySetName) throws RemoteException, ProfileNotFoundException
RemoteException
ProfileNotFoundException
EntityPropertyCache
,
PropertyMapKey
public Object getProperty(String propertySet, String propertyName) throws RemoteException, ProfileNotFoundException
propertySet
- the property set containing the propertypropertyName
- the name of the property to retrieve
ProfileNotFoundException
- if the profile is not valid
RemoteException
public Object getProperty(String propertySet, String propertyName, String successor) throws RemoteException, ProfileNotFoundException
propertySet
- the property set containing the propertypropertyName
- the name of the property to retrievesuccessor
- a profile to use as an explicit successor
ProfileNotFoundException
- if the profile is not valid
RemoteException
public String getPropertyAsString(String propertySet, String propertyName) throws RemoteException, ProfileNotFoundException
propertySet
- the property set containing the propertypropertyName
- the name of the property to retrieve
ProfileNotFoundException
- if the profile is not valid
RemoteException
public String getPropertyAsString(String propertySet, String propertyName, String successor) throws RemoteException, ProfileNotFoundException
propertySet
- the property set containing the propertypropertyName
- the name of the property to retrievesuccessor
- a profile to use as an explicit successor
ProfileNotFoundException
- if the profile is not valid
RemoteException
public String getSuccessor(String propertySet) throws RemoteException, ProfileNotFoundException
propertySet
- The name of the property set
ProfileNotFoundException
- if the profile is not valid
RemoteException
public ProfileType getType()
public String getUsername()
public boolean isType(ProfileType type)
public Object removeProperty(String propertySet, String propertyName) throws RemoteException, ProfileNotFoundException
propertySet
- the property set containing the propertypropertyName
- the name of the property to retrieve
ProfileNotFoundException
- if the profile is not valid
RemoteException
public void removeSuccessor(String propertySet) throws RemoteException, ProfileNotFoundException
propertySet
- The name of the property set
ProfileNotFoundException
- if the profile is not valid
RemoteException
public void setProperties(EntityPropertyCache cache) throws RemoteException, ProfileNotFoundException
cache
- The input property cache.
RemoteException
- if profile is not valid
ProfileNotFoundException
public void setProperty(String propertySet, String propertyName, Object value) throws PropertyValidationException, RemoteException, ProfileNotFoundException
propertySet
- the property set containing the propertypropertyName
- the name of the property to retrievevalue
- the new value for the property
PropertyValidationException
- if the new value is not valid
ProfileNotFoundException
- if the profile is not valid
RemoteException
public void setSuccessor(String propertySet, String successor) throws RemoteException, ProfileNotFoundException
propertySet
- The name of the property setsuccessor
- the name of the successor profile to set
ProfileNotFoundException
- if the profile or the successor is not valid
RemoteException
public void validateProfile() throws RemoteException, ProfileNotFoundException, SuccessorNotFoundException
ProfileNotFoundException
- if the profile is not valid
SuccessorNotFoundException
- if the successor is not valid
RemoteException
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |