Control
ProfileManager is a stateless session bean used to access profile values. It coordinates successor searches and mapping properties to different datasources.
This control has been deprecated. Use the ProfileControl instead.
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:
This control requires that the UserProfileManager EJB has been deployed to the application. The UserProfileManager EJB is contained in p13n_ejb.jar, and is automatically deployed as part of a Portal application.
Related Topics
Control
, Control
, Serializable
Method Summary |
public void |
|
public void |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public long |
|
public boolean |
|
public |
|
public void |
|
public void |
|
public void |
|
Method Detail |
DEPRECATED Use ProfileControl.getUserProfileManager().createProfile(name)
public void createProfile(Create a profile record with the given name.String
profileName)
throwsP13nControlException
P13nControlException
DEPRECATED use ProfileControl.deleteProfile(profileName)
public void deleteProfile(Remove a profileString
profileName)
throwsP13nControlException
P13nControlException
DEPRECATED use ProfileControl.getAllProfileNames()
publicReturn a list of all profiles that this ProfileManager knows about.String
[] getAllProfileNames()
throwsP13nControlException
P13nControlException
DEPRECATED Use ProfileControl.getUserProfileManager().getJndiName()
publicRetrieve the jndi name used by this ProfileManager. A combination of pk string and jndi name is always unique between profiles.String
getJndiName()
throwsP13nControlException
P13nControlException
DEPRECATED Use ProfileControl.getUserProfileManager().getProfileName()
publicGet the name of a profile based on its unique identifier.String
getProfileName(long profileId)
throwsP13nControlException
P13nControlException
DEPRECATED Use ProfileControl.getUserProfileManager().getProperties()
publicGet all properties for this profileEntityPropertyCache
getProperties(String
profileName)
throwsP13nControlException
P13nControlException
DEPRECATED Use ProfileControl.getUserProfileManager().getPropertiesForKeys()
publicGet all properties for this profile and property set/name keys contained in the Set of propertyMapKeysEntityPropertyCache
getPropertiesForKeys(String
profileName,Set
propertyMapKeys)
throwsP13nControlException
P13nControlException
Related Topics
DEPRECATED Use ProfileControl.getUserProfileManager().getPropertiesInPropertySet()
publicGet all properties for this profile and named property setEntityPropertyCache
getPropertiesInPropertySet(String
profileName,String
propertySetName)
throwsP13nControlException
P13nControlException
DEPRECATED Use ProfileControl.getUserProfileManager().getProperty()
publicGet a property from the profile. If the property is not found, the default value from the property set will be returned.Object
getProperty(String
profileName,String
propertySet,String
propertyName)
throwsP13nControlException
P13nControlException
DEPRECATED Use ProfileControl.getUserProfileManager().getPropertyAsString()
publicGet 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
profileName,String
propertySet,String
propertyName)
throwsP13nControlException
P13nControlException
DEPRECATED Use ProfileControl.getUserProfileManager().getPropertyAsStringTrySuccessor()
publicGet a property from the profile as a String. If the property is not found in the profile, search the profile named in the successor field. If the property is still not found, the default value from the property set will be returned.String
getPropertyAsStringTrySuccessor(String
profileName,String
propertySet,String
propertyName,String
successor)
throwsP13nControlException
P13nControlException
DEPRECATED Use ProfileControl.getUserProfileManager().getPropertyNoDefault()
publicGet a property from the profile. If the property is not found in the profile, search the profile named in the successor field. This version will not return the default from the property set.Object
getPropertyNoDefault(String
profileName,String
propertySet,String
propertyName,String
successor)
throwsP13nControlException
P13nControlException
DEPRECATED Use ProfileControl.getUserProfileManager().getPropertyTrySuccessor()
publicGet a property from the profile. If the property is not found in the profile, search the profile named in the successor field. If the property is still not found, the default value from the property set will be returned.Object
getPropertyTrySuccessor(String
profileName,String
propertySet,String
propertyName,String
successor)
throwsP13nControlException
P13nControlException
DEPRECATED Use ProfileControl.getUserProfileManager().getSuccessor()
publicRetrieve the successor for the specified property set. For user and group profiles, this will always be a group name.String
getSuccessor(String
profileName,String
propertySet)
throwsP13nControlException
P13nControlException
DEPRECATED Use ProfileControl.getUserProfileManager().getUniqueId()
public long getUniqueId(Retrieve the unique identifier generated for this profile. The unique identifier is used by the EntityPropertyManager to optimize the foreign keys in the persistent storage.String
profileName)
throwsP13nControlException
P13nControlException
DEPRECATED Use ProfileControl.getUserProfileManager().profileExists(profileName)
public boolean profileExists(Determine if a profile existsString
profileName)
throwsP13nControlException
P13nControlException
DEPRECATED Use ProfileControl.getUserProfileManager().removeProperty()
publicRemove a property from the profileObject
removeProperty(String
profileName,String
propertySet,String
propertyName)
throwsP13nControlException
P13nControlException
DEPRECATED Use ProfileControl.getUserProfileManager().removeSuccessor()
public void removeSuccessor(Remove the successor for the specified property set.String
profileName,String
propertySet)
throwsP13nControlException
P13nControlException
DEPRECATED Use ProfileControl.getUserProfileManager().setProperty()
public void setProperty(Set a property in the profileString
profileName,String
propertySet,String
propertyName,Object
value)
throwsP13nControlException
P13nControlException
DEPRECATED Use ProfileControl.getUserProfileManager().setSuccessor()
public void setSuccessor(Set the successor for the specified property setString
profileName,String
propertySet,String
successor)
throwsP13nControlException
P13nControlException