|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPortletEntityDao
Provides APIs for creating, storing and retrieving IPortletEntity objects.
| Method Summary | |
|---|---|
IPortletEntity |
createPortletEntity(IPortletDefinitionId portletDefinitionId,
String channelSubscribeId,
int userId)
Creates, initializes and persists a new IPortletEntity based on the specified IPortletDefinitionId,
channel subscribe id and user id. |
void |
deletePortletEntity(IPortletEntity portletEntity)
Removes the specified IPortletEntity from the persistent store. |
Set<IPortletEntity> |
getPortletEntities(IPortletDefinitionId portletDefinitionId)
Get all IPortletEntitys based on the specified IPortletDefinitionId. |
Set<IPortletEntity> |
getPortletEntitiesForUser(int userId)
Get all IPortletEntitys that exist for the specified user id. |
IPortletEntity |
getPortletEntity(IPortletEntityId portletEntityId)
Get a IPortletEntity for the specified IPortletEntityId. |
IPortletEntity |
getPortletEntity(String channelSubscribeId,
int userId)
Get a IPortletEntity for the specified channel subscribe id and user id. |
void |
updatePortletEntity(IPortletEntity portletEntity)
Persists changes to a IPortletEntity. |
| Method Detail |
|---|
IPortletEntity createPortletEntity(IPortletDefinitionId portletDefinitionId,
String channelSubscribeId,
int userId)
IPortletEntity based on the specified IPortletDefinitionId,
channel subscribe id and user id.
portletDefinitionId - The id of the IPortletDefinition that is the parent of the new entitychannelSubscribeId - The subscription id for the channel the entity is based on in the user's layout.userId - The id of the user 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 IPortletDefinitionIdvoid updatePortletEntity(IPortletEntity portletEntity)
IPortletEntity.
portletEntity - The portlet entity to store the changes for
IllegalArgumentException - if portletEntity is null.IPortletEntity getPortletEntity(IPortletEntityId portletEntityId)
IPortletEntity for the specified IPortletEntityId.
portletEntityId - The id to get the entity for.
IllegalArgumentException - if portletEntityId is null.
IPortletEntity getPortletEntity(String channelSubscribeId,
int userId)
IPortletEntity for the specified channel subscribe id and user id.
channelSubscribeId - The channel subscription id from the user's layout to get the entity foruserId - The user id to get the entity for
IllegalArgumentException - if channelSubscribeId is null.Set<IPortletEntity> getPortletEntities(IPortletDefinitionId portletDefinitionId)
IPortletEntitys based on the specified IPortletDefinitionId.
portletDefinitionId - The ID of the parent portlet definition
IllegalArgumentException - if portletDefinitionId is null.Set<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)
IPortletEntity from the persistent store.
portletEntity - The entity to remove.
IllegalArgumentException - if portletEntity is null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||