|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.portlet.registry.PortletEntityRegistryImpl
public class PortletEntityRegistryImpl
Provides access to IPortletEntity objects and convenience methods for creating and converting them and related objects. The portlet adaptor channel will be responsible for listenting to unsubscribe events and cleaning up entity objects
| Field Summary | |
|---|---|
static String |
INTERIM_PORTLET_ENTITY_MAP_ATTRIBUTE
|
protected org.apache.commons.logging.Log |
logger
|
static String |
PORTLET_ENTITY_ID_MAP_ATTRIBUTE
|
| Constructor Summary | |
|---|---|
PortletEntityRegistryImpl()
|
|
| Method Summary | |
|---|---|
IPortletEntity |
createPortletEntity(IPortletDefinitionId portletDefinitionId,
String channelSubscribeId,
int userId)
Creates a new, persisted, portlet entity for the published and subscribed to channel. |
void |
deletePortletEntity(IPortletEntity portletEntity)
Removes a portlet entity and all related data from the persistent store. |
protected Set<org.jasig.portal.portlet.registry.InterimPortletEntityImpl> |
getInterimPortletEntities(int userId)
|
protected org.jasig.portal.portlet.registry.InterimPortletEntityImpl |
getInterimPortletEntity(IPortletEntityId portletEntityId)
|
protected org.jasig.portal.portlet.registry.InterimPortletEntityImpl |
getInterimPortletEntity(String channelSubscribeId,
int userId)
|
protected org.jasig.portal.portlet.registry.PortletEntityRegistryImpl.InterimPortletEntityCache |
getInterimPortletEntityCache()
|
IPortletEntity |
getOrCreatePortletEntity(IPortletDefinitionId portletDefinitionId,
String channelSubscribeId,
int userId)
Convience for IPortletEntityRegistry.getPortletEntity(String, int) and IPortletEntityRegistry.createPortletEntity(IPortletDefinitionId, String, int). |
IPortletDefinition |
getParentPortletDefinition(IPortletEntityId portletEntityId)
Gets the parent portlet definition for the entity specified by the entity id. |
protected IPortletEntityId |
getPersistentId(IPortletEntityId wrapperId)
|
protected Map<IPortletEntityId,IPortletEntityId> |
getPersistentIdMap()
|
IPortletDefinitionRegistry |
getPortletDefinitionRegistry()
|
Set<IPortletEntity> |
getPortletEntitiesForUser(int userId)
Get all IPortletEntitys that exist for the specified user id. |
IPortletEntity |
getPortletEntity(IPortletEntityId portletEntityId)
Get an existing portlet entity for the entity id. |
IPortletEntity |
getPortletEntity(String portletEntityIdString)
Get an existing portlet entity for the String version of the entity id. |
IPortletEntity |
getPortletEntity(String channelSubscribeId,
int userId)
Get an existing portlet entity for the channel subscribe id and person. |
IPortletEntityDao |
getPortletEntityDao()
|
protected HttpSession |
getSession()
|
protected void |
removeInterimPortletEntity(IPortletEntityId portletEntityId)
|
protected void |
removePersistentId(IPortletEntityId wrapperId)
|
protected void |
setPersistentIdMapping(IPortletEntityId wrapperId,
IPortletEntityId persistentId)
|
void |
setPortalRequestUtils(IPortalRequestUtils portalRequestUtils)
|
void |
setPortletDefinitionRegistry(IPortletDefinitionRegistry portletDefinitionRegistry)
|
void |
setPortletEntityDao(IPortletEntityDao portletEntityDao)
|
protected void |
storeInterimPortletEntity(org.jasig.portal.portlet.registry.InterimPortletEntityImpl interimPortletEntity)
|
void |
storePortletEntity(IPortletEntity portletEntity)
Stores changes made to an existing portlet entity |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String INTERIM_PORTLET_ENTITY_MAP_ATTRIBUTE
public static final String PORTLET_ENTITY_ID_MAP_ATTRIBUTE
protected final org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public PortletEntityRegistryImpl()
| Method Detail |
|---|
public IPortletEntityDao getPortletEntityDao()
public void setPortletEntityDao(IPortletEntityDao portletEntityDao)
portletEntityDao - the portletEntityDao to setpublic IPortletDefinitionRegistry getPortletDefinitionRegistry()
public void setPortletDefinitionRegistry(IPortletDefinitionRegistry portletDefinitionRegistry)
portletDefinitionRegistry - the portletDefinitionRegistry to setpublic void setPortalRequestUtils(IPortalRequestUtils portalRequestUtils)
public IPortletEntity createPortletEntity(IPortletDefinitionId portletDefinitionId,
String channelSubscribeId,
int userId)
IPortletEntityRegistryIPortletDefinition can't be found for the portletDefinitionId or an entity already exists for the channel
subscribe id and person an exception will be thrown.
createPortletEntity in interface IPortletEntityRegistryportletDefinitionId - The definition id of the underlying IPortletDefinitionchannelSubscribeId - The layout subscription id for the underlying channel.userId - The id of the person the entity is for.
public IPortletEntity getPortletEntity(IPortletEntityId portletEntityId)
IPortletEntityRegistry
getPortletEntity in interface IPortletEntityRegistryportletEntityId - The id of the entity to retrieve
public IPortletEntity getPortletEntity(String portletEntityIdString)
IPortletEntityRegistryIPortletEntityId an IllegalArgumentException will be thrown. If no entity
exists for the id null will be returned.
getPortletEntity in interface IPortletEntityRegistryportletEntityIdString - The id of the entity to retrieve
public IPortletEntity getPortletEntity(String channelSubscribeId,
int userId)
IPortletEntityRegistry
getPortletEntity in interface IPortletEntityRegistrychannelSubscribeId - The layout subscription id for the underlying channel.userId - The if of the person the entity is for.
public Set<IPortletEntity> getPortletEntitiesForUser(int userId)
IPortletEntityRegistryIPortletEntitys that exist for the specified user id. (From IPerson.getID().
getPortletEntitiesForUser in interface IPortletEntityRegistryuserId - The id of the user to get the entities for.
public IPortletEntity getOrCreatePortletEntity(IPortletDefinitionId portletDefinitionId,
String channelSubscribeId,
int userId)
IPortletEntityRegistryIPortletEntityRegistry.getPortletEntity(String, int) and IPortletEntityRegistry.createPortletEntity(IPortletDefinitionId, String, int).
If the get returns null the entity will be created and returned.
getOrCreatePortletEntity in interface IPortletEntityRegistryIPortletEntityRegistry.getPortletEntity(String, int),
IPortletEntityRegistry.createPortletEntity(IPortletDefinitionId, String, int)public void storePortletEntity(IPortletEntity portletEntity)
IPortletEntityRegistry
storePortletEntity in interface IPortletEntityRegistryportletEntity - The entity to update the persistent store forpublic void deletePortletEntity(IPortletEntity portletEntity)
IPortletEntityRegistry
deletePortletEntity in interface IPortletEntityRegistryportletEntity - The the entity to delete.public IPortletDefinition getParentPortletDefinition(IPortletEntityId portletEntityId)
IPortletEntityRegistry
getParentPortletDefinition in interface IPortletEntityRegistryportletEntityId - The entity ID to get the parent definition for.
protected void setPersistentIdMapping(IPortletEntityId wrapperId,
IPortletEntityId persistentId)
protected IPortletEntityId getPersistentId(IPortletEntityId wrapperId)
protected void removePersistentId(IPortletEntityId wrapperId)
protected Map<IPortletEntityId,IPortletEntityId> getPersistentIdMap()
protected void removeInterimPortletEntity(IPortletEntityId portletEntityId)
protected org.jasig.portal.portlet.registry.InterimPortletEntityImpl getInterimPortletEntity(IPortletEntityId portletEntityId)
protected org.jasig.portal.portlet.registry.InterimPortletEntityImpl getInterimPortletEntity(String channelSubscribeId,
int userId)
protected Set<org.jasig.portal.portlet.registry.InterimPortletEntityImpl> getInterimPortletEntities(int userId)
protected void storeInterimPortletEntity(org.jasig.portal.portlet.registry.InterimPortletEntityImpl interimPortletEntity)
protected org.jasig.portal.portlet.registry.PortletEntityRegistryImpl.InterimPortletEntityCache getInterimPortletEntityCache()
protected HttpSession getSession()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||