|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPortletEntityRegistry
Provides methods for creating and accessing IPortletEntity and related objects.
| 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. |
IPortletEntity |
getOrCreatePortletEntity(IPortletDefinitionId portletDefinitionId,
String channelSubscribeId,
int userId)
Convience for getPortletEntity(String, int) and createPortletEntity(IPortletDefinitionId, String, int). |
IPortletDefinition |
getParentPortletDefinition(IPortletEntityId portletEntityId)
Gets the parent portlet definition for the entity specified by the entity id. |
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. |
void |
storePortletEntity(IPortletEntity portletEntity)
Stores changes made to an existing portlet entity |
| Method Detail |
|---|
IPortletEntity getPortletEntity(IPortletEntityId portletEntityId)
portletEntityId - The id of the entity to retrieve
IllegalArgumentException - If portletEntityId is null.IPortletEntity getPortletEntity(String portletEntityIdString)
IPortletEntityId an IllegalArgumentException will be thrown. If no entity
exists for the id null will be returned.
portletEntityIdString - The id of the entity to retrieve
IllegalArgumentException - If portletEntityIdString is null or cannot be parsed into a IPortletEntityId.
IPortletEntity getPortletEntity(String channelSubscribeId,
int userId)
channelSubscribeId - The layout subscription id for the underlying channel.userId - The if of the person the entity is for.
IllegalArgumentException - If channelSubscribeId is null.
IPortletEntity createPortletEntity(IPortletDefinitionId portletDefinitionId,
String channelSubscribeId,
int userId)
IPortletDefinition can't be found for the portletDefinitionId or an entity already exists for the channel
subscribe id and person an exception will be thrown.
portletDefinitionId - 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.
IllegalArgumentException - If portletDefinitionId or channelSubscribeId are null
DataIntegrityViolationException - If an entity already exists for the channel
subscribe id and userId pair
DataRetrievalFailureException - If no IPortletDefinition
exists for the specified IPortletDefinitionId
IPortletEntity getOrCreatePortletEntity(IPortletDefinitionId portletDefinitionId,
String channelSubscribeId,
int userId)
getPortletEntity(String, int) and createPortletEntity(IPortletDefinitionId, String, int).
If the get returns null the entity will be created and returned.
getPortletEntity(String, int),
createPortletEntity(IPortletDefinitionId, String, int)void storePortletEntity(IPortletEntity portletEntity)
portletEntity - The entity to update the persistent store for
IllegalArgumentException - if portletEntity is nullSet<IPortletEntity> getPortletEntitiesForUser(int userId)
IPortletEntitys that exist for the specified user id. (From IPerson.getID().
userId - The id of the user to get the entities for.
void deletePortletEntity(IPortletEntity portletEntity)
portletEntity - The the entity to delete.
IllegalArgumentException - if portletEntity is nullIPortletDefinition getParentPortletDefinition(IPortletEntityId portletEntityId)
portletEntityId - The entity ID to get the parent definition for.
IllegalArgumentException - if portletEntityId is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||