|
© 2001 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Interface for a session bean that provides ConfigurableEntity functionality with minimal access through entity beans. This is accomplished by accessing the EntityPropertyManager directly, and reduces ejb locks so that there is less of a risk of deadlock.
| Field Summary | |
static java.lang.String |
GROUP_PROFILE_TYPE
|
static java.lang.String |
USER_PROFILE_TYPE
|
| Method Summary | |
java.lang.Object |
getDefaultValue(java.lang.String propertySet,
java.lang.String propertyName)
Retrieves the default value of a property |
ConfigurableEntity |
getEntity(java.lang.String pk,
java.lang.String profileType)
Instantiates a ConfigurableEntity based on the pk and profileType, and returns it cast as a ConfigurableEntity. |
long |
getEntityId(java.lang.String pk,
java.lang.String profileType)
Retrieves the unique numeric id of a configurable entity |
java.lang.Object |
getExplicitProperty(java.lang.String profileKey,
java.lang.String profileType,
java.lang.String propertyName)
Retrieve an explicit property from a configurable entity, if it exists. |
java.util.Map |
getProperties(java.lang.String pk,
java.lang.String profileType,
java.lang.String successorPk,
java.lang.String successorProfileType)
Retrieve all set properties for a particular ConfigurableEntity, following the successor chains as necessary. |
java.lang.Object |
getProperty(java.lang.String pk,
java.lang.String profileType,
java.lang.String successorPk,
java.lang.String successorProfileType,
java.lang.String propertySet,
java.lang.String propertyName,
java.lang.Object defaultValue)
Retrieve a property from a configurable entity. |
void |
removePropertiesFromCache(java.lang.String profileKey,
java.lang.String profileType)
Remove all values for a particular profile from the cache. |
java.lang.Object |
removeProperty(java.lang.String pk,
java.lang.String profileType,
java.lang.String propertySet,
java.lang.String propertyName)
Removes the property from the given configurable entity. |
void |
setProperty(java.lang.String pk,
java.lang.String profileType,
java.lang.String propertySet,
java.lang.String propertyName,
java.lang.Object value)
Sets a property for a configurable entity. |
| Field Detail |
public static final java.lang.String USER_PROFILE_TYPE
public static final java.lang.String GROUP_PROFILE_TYPE
| Method Detail |
public java.util.Map getProperties(java.lang.String pk,
java.lang.String profileType,
java.lang.String successorPk,
java.lang.String successorProfileType)
throws java.rmi.RemoteException
pk - the profile key of the entityprofileType - the profile type of the entitysuccessorPk - the profile key of an explicit successor to use (can be null)successorProfileType - the profile type for an explicity successor (can be null)
public java.lang.Object getExplicitProperty(java.lang.String profileKey,
java.lang.String profileType,
java.lang.String propertyName)
throws java.rmi.RemoteException
profileKey - the profile key of the entityprofileType - the profile type of the entitypropertyName - the name of the property to retrieve
public java.lang.Object getProperty(java.lang.String pk,
java.lang.String profileType,
java.lang.String successorPk,
java.lang.String successorProfileType,
java.lang.String propertySet,
java.lang.String propertyName,
java.lang.Object defaultValue)
throws java.rmi.RemoteException
pk - the profile key of the entityprofileType - the profile type of the entitysuccessorPk - the profile key of the explicit successorsuccessorProfileType - the type of the explicit successorpropertySet - the property set to look inpropertyName - the name of the property to retrievedefaultValue - a value to return if none is found
public java.lang.Object getDefaultValue(java.lang.String propertySet,
java.lang.String propertyName)
throws java.rmi.RemoteException
propertySet - the property set to look inpropertyName - the name of the property
public void setProperty(java.lang.String pk,
java.lang.String profileType,
java.lang.String propertySet,
java.lang.String propertyName,
java.lang.Object value)
throws java.rmi.RemoteException
pk - the key of the entity to updateprofileType - the profile type of the entitypropertySet - the property set of the property to setpropertyName - the name of the property to setvalue - the value to set
public java.lang.Object removeProperty(java.lang.String pk,
java.lang.String profileType,
java.lang.String propertySet,
java.lang.String propertyName)
throws java.rmi.RemoteException
pk - the key of the entity to updateprofileType - the profile type of the entitypropertySet - the property set of the property to setpropertyName - the name of the property to set
public long getEntityId(java.lang.String pk,
java.lang.String profileType)
throws java.rmi.RemoteException
pk - the key of the entityprofileType - the type of entity
public ConfigurableEntity getEntity(java.lang.String pk,
java.lang.String profileType)
throws java.rmi.RemoteException
pk - the key of the entity to retrieveprofileType - the type to retrieve it as
public void removePropertiesFromCache(java.lang.String profileKey,
java.lang.String profileType)
throws java.rmi.RemoteException
|
© 2001 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||