|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ProfileManager is a stateless session bean used to access profile values. It coordinates successor searches and mapping properties to different datasources. To provide a successor to the methods which take one, use the profile name of the successor profile. Each profile manager uses only one type as the successor type; for example, when specifying a successor to a UserProfileManager, it assumes the name is a group profile name. Property mapping is done through the deployment descriptor of the ProfileManager session bean. First, the default EntityPropertyManager to be used must have an ejb-ref named ejb/EntityPropertyManager. Any other EntityPropertyManager's to be used must also have ejb-refs. To map properties to a non-default EntityPropertyManager:
Method Summary | |
void |
createProfile(java.lang.String profileName)
Create a profile record with the given name. |
void |
deleteProfile(java.lang.String profileName)
Remove a profile |
java.lang.String[] |
getAllProfileNames()
Return a list of all profiles that this ProfileManager knows about. |
java.lang.String |
getJndiName()
Retrieve the jndi name used by this ProfileManager. |
java.lang.String |
getProfileName(long entityId)
Get the name of a profile based on its unique identifier. |
java.lang.Object |
getProperty(java.lang.String profileName,
java.lang.String propertySet,
java.lang.String propertyName)
Get a property from the profile. |
java.lang.Object |
getProperty(java.lang.String profileName,
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 profileName,
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 profileName,
java.lang.String propertySet,
java.lang.String propertyName,
java.lang.String successor)
Get a property from the profile as a String. |
java.lang.Object |
getPropertyNoDefault(java.lang.String profileName,
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 profileName,
java.lang.String propertySet)
Retrieve the successor for the specified property set. |
long |
getUniqueId(java.lang.String profileName)
Retrieve the unique identifier generated for this profile. |
boolean |
profileExists(java.lang.String profileName)
Determine if a profile exists |
java.lang.Object |
removeProperty(java.lang.String profileName,
java.lang.String propertySet,
java.lang.String propertyName)
Remove a property from the profile |
void |
removeSuccessor(java.lang.String profileName,
java.lang.String propertySet)
Remove the successor for the specified property set. |
void |
setProperty(java.lang.String profileName,
java.lang.String propertySet,
java.lang.String propertyName,
java.lang.Object value)
Set a property in the profile |
void |
setSuccessor(java.lang.String profileName,
java.lang.String propertySet,
java.lang.String successor)
Set the successor for the specified property set |
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome,
getHandle,
getPrimaryKey,
isIdentical,
remove |
Method Detail |
public java.lang.Object getProperty(java.lang.String profileName, java.lang.String propertySet, java.lang.String propertyName) throws java.rmi.RemoteException, ProfileNotFoundException
profileName
- the name of the profile to readpropertySet
- the property set containing the propertypropertyName
- the name of the property to retrievepublic java.lang.String getPropertyAsString(java.lang.String profileName, java.lang.String propertySet, java.lang.String propertyName) throws java.rmi.RemoteException, ProfileNotFoundException
profileName
- the name of the profile to readpropertySet
- the property set containing the propertypropertyName
- the name of the property to retrievepublic java.lang.Object getProperty(java.lang.String profileName, java.lang.String propertySet, java.lang.String propertyName, java.lang.String successor) throws java.rmi.RemoteException, ProfileNotFoundException
profileName
- the name of the profile to readpropertySet
- the property set containing the propertypropertyName
- the name of the property to retrievepublic java.lang.String getPropertyAsString(java.lang.String profileName, java.lang.String propertySet, java.lang.String propertyName, java.lang.String successor) throws java.rmi.RemoteException, ProfileNotFoundException
profileName
- the name of the profile to readpropertySet
- the property set containing the propertypropertyName
- the name of the property to retrievepublic java.lang.Object getPropertyNoDefault(java.lang.String profileName, java.lang.String propertySet, java.lang.String propertyName, java.lang.String successor) throws java.rmi.RemoteException, ProfileNotFoundException
profileName
- the name of the profile to readpropertySet
- the property set containing the propertypropertyName
- the name of the property to retrievepublic void setProperty(java.lang.String profileName, java.lang.String propertySet, java.lang.String propertyName, java.lang.Object value) throws PropertyValidationException, ProfileNotFoundException, java.rmi.RemoteException
profileName
- the name of the profile to modifypropertySet
- 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 profileName, java.lang.String propertySet, java.lang.String propertyName) throws java.rmi.RemoteException, ProfileNotFoundException
profileName
- the name of the profile to modifypropertySet
- the property set containing the propertypropertyName
- the name of the property to retrievepublic java.lang.String getSuccessor(java.lang.String profileName, java.lang.String propertySet) throws java.rmi.RemoteException, ProfileNotFoundException
profileName
- the name of the profile to readpropertySet
- The name of the property setpublic void removeSuccessor(java.lang.String profileName, java.lang.String propertySet) throws java.rmi.RemoteException, ProfileNotFoundException
profileName
- the name of the profile to modifypropertySet
- The name of the property setpublic void setSuccessor(java.lang.String profileName, java.lang.String propertySet, java.lang.String successor) throws java.rmi.RemoteException, ProfileNotFoundException
profileName
- the name of the profile to modifypropertySet
- The name of the property setsuccessor
- the name of the successor profile to setpublic long getUniqueId(java.lang.String profileName) throws java.rmi.RemoteException, ProfileNotFoundException
profileName
- the name of the profile to readpublic java.lang.String getProfileName(long entityId) throws java.rmi.RemoteException, ProfileNotFoundException
profileId
- the unique id to lookuppublic java.lang.String getJndiName() throws java.rmi.RemoteException
public void createProfile(java.lang.String profileName) throws java.rmi.RemoteException
profileName
- the name of the profile to createpublic void deleteProfile(java.lang.String profileName) throws java.rmi.RemoteException, ProfileNotFoundException
profileName
- the name of the profile to removepublic boolean profileExists(java.lang.String profileName) throws java.rmi.RemoteException
profileName
- the name to look forpublic java.lang.String[] getAllProfileNames() throws java.rmi.RemoteException
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |