Package de.xima.fc.dao.impl
Class UserPortalContentDao
- java.lang.Object
-
- de.xima.cmn.dao.AbstractDao<T,Long,IEntityContext>
-
- de.xima.fc.dao.impl.GenericDao<UserPortalContent>
-
- de.xima.fc.dao.impl.UserPortalContentDao
-
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<UserPortalContent,Long,IEntityContext>,IGenericDao<UserPortalContent>,IUserPortalContentDao
public class UserPortalContentDao extends GenericDao<UserPortalContent> implements IUserPortalContentDao
Implementation of theIUserPortalContentDaofor reading and writingUserPortalContententities.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description UserPortalContentDao()
-
Method Summary
All Methods Instance Methods Concrete 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)Deprecated.protected IFCDaoActionHook<UserPortalContent>getPostActionHook()protected IFCDaoActionHook<UserPortalContent>getPreActionHook()-
Methods inherited from class de.xima.fc.dao.impl.GenericDao
getEntityRefs, read
-
Methods inherited from class de.xima.cmn.dao.AbstractDao
all, bulkDelete, bulkUpdate, cb, checkLockingVersion, cq, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, notifyListener, notifyListener, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
public void assertUserPortalContent(IEntityContext ec, UserPortalContent config)
Description copied from interface:IUserPortalContentDaoChecks 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.- Specified by:
assertUserPortalContentin interfaceIUserPortalContentDao- Parameters:
ec- entity context for accessing the database.config- to check.
-
getActiveContentByPortal
public UserPortalContent getActiveContentByPortal(IEntityContext ec, UUID userPortalUuid, UUID userPortalContentUuid)
Description copied from interface:IUserPortalContentDaoGets the active user portal content for the given portal and content UUID, if any.- Specified by:
getActiveContentByPortalin interfaceIUserPortalContentDao- 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
public UserPortalContent getByPortal(IEntityContext ec, UUID userPortalUuid, UUID userPortalContentUuid)
Description copied from interface:IUserPortalContentDaoGets the user portal content for the given portal and content UUID, if any. This method does not check if the content is active.- Specified by:
getByPortalin interfaceIUserPortalContentDao- 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.
-
getPostActionHook
protected IFCDaoActionHook<UserPortalContent> getPostActionHook()
- Overrides:
getPostActionHookin classGenericDao<UserPortalContent>
-
getPreActionHook
protected IFCDaoActionHook<UserPortalContent> getPreActionHook()
- Overrides:
getPreActionHookin classGenericDao<UserPortalContent>
-
getByProjectAndPortal
@Deprecated public UserPortalContent getByProjectAndPortal(IEntityContext ec, Projekt project, UserPortal portal)
Deprecated.Description copied from interface:IUserPortalContentDaoGets the user portal content for the given project and portal, if any.- Specified by:
getByProjectAndPortalin interfaceIUserPortalContentDao- 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.
-
-