Package de.xima.fc.dao.interfaces
Interface IUserPortalContentDao
-
- All Superinterfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<UserPortalContent,Long,IEntityContext>,IGenericDao<UserPortalContent>
- All Known Implementing Classes:
UserPortalContentDao
public interface IUserPortalContentDao extends IGenericDao<UserPortalContent>
DAO for reading and writingUserPortalContententities.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidassertUserPortalContent(IEntityContext ec, UserPortalContent config)Checks if the project portal config can be persisted (create/update).UserPortalContentgetActiveContentByPortal(IEntityContext ec, UUID userPortalUuid, UUID userPortalContentUuid)Gets the active user portal content for the given portal and content UUID, if any.UserPortalContentgetByPortal(IEntityContext ec, UUID userPortalUuid, UUID userPortalContentUuid)Gets the user portal content for the given portal and content UUID, if any.UserPortalContentgetByProjectAndPortal(IEntityContext ec, Projekt project, UserPortal portal)-
Methods inherited from interface de.xima.cmn.dao.interfaces.IAbstractDao
all, bulkDelete, bulkUpdate, checkLockingVersion, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, update
-
Methods inherited from interface de.xima.fc.dao.interfaces.IGenericDao
count, createOrUpdate, findAll, findSingle, getEntityRefs, read
-
-
-
-
Method Detail
-
assertUserPortalContent
void assertUserPortalContent(IEntityContext ec, UserPortalContent config)
Checks if the project portal config can be persisted (create/update). If the state of the project portal config does not allow persisting than aDatabaseAccessExceptionwill be thrown.- Parameters:
ec- entity context for accessing the database.config- to check.- Throws:
de.xima.cmn.dao.exceptions.DatabaseAccessException- if the user identity can't be persisted.
-
getActiveContentByPortal
UserPortalContent getActiveContentByPortal(IEntityContext ec, UUID userPortalUuid, UUID userPortalContentUuid)
Gets the active user portal content for the given portal and content UUID, if any.- Parameters:
ec- entity context for accessing the database.userPortalUuid- the user portal UUID to search for.userPortalContentUuid- the user portal content uuid to search for.- Returns:
- the active user portal content for the given portal and content UUID, or null if none exists.
-
getByPortal
UserPortalContent getByPortal(IEntityContext ec, UUID userPortalUuid, UUID userPortalContentUuid)
Gets the user portal content for the given portal and content UUID, if any. This method does not check if the content is active.- Parameters:
ec- entity context for accessing the database.userPortalUuid- the user portal UUID to search for.userPortalContentUuid- the user portal content uuid to search for.- Returns:
- the user portal content for the given portal and content UUID, or null if none exists.
-
getByProjectAndPortal
@Deprecated UserPortalContent getByProjectAndPortal(IEntityContext ec, Projekt project, UserPortal portal)
Deprecated.Gets the user portal content for the given project and portal, if any.- Parameters:
ec- Entity context for accessing the database.project- A project.portal- A user portal.- Returns:
- The user portal content for the given project and portal, or null if none exists.
-
-