Package de.xima.fc.dao.impl
Class UserPortalDao
- java.lang.Object
-
- de.xima.cmn.dao.AbstractDao<T,Long,IEntityContext>
-
- de.xima.fc.dao.impl.GenericDao<UserPortal>
-
- de.xima.fc.dao.impl.UserPortalDao
-
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<UserPortal,Long,IEntityContext>
,IGenericDao<UserPortal>
,IUserPortalDao
public class UserPortalDao extends GenericDao<UserPortal> implements IUserPortalDao
Implementation of theIUserPortalDao
for reading and writingUserPortal
entities.- Since:
- 8.2.0
- Author:
- XIMA Media GmbH
-
-
Constructor Summary
Constructors Constructor Description UserPortalDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assertUserPortal(IEntityContext ec, UserPortal portal)
Checks if the user portal can be persisted (create/update).List<UserPortal>
getAllByClient(IEntityContext ec, Mandant client)
Returns all user portal entities available for the given client.UserPortal
getByUuid(IEntityContext ec, UUID uuid)
Returns the user portal entity with the given UUID.PagedResult<UserPortal>
getForFrontendServer(IEntityContext ec, FrontendServer frontendServer, int page, int pageSize)
Returns all user portal entities available on the given frontend server.PagedResult<UserPortal>
getForMasterServer(IEntityContext ec, int page, int pageSize)
Returns all user portal entities available on the master server.protected IFCDaoActionHook<UserPortal>
getPostActionHook()
protected IFCDaoActionHook<UserPortal>
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, findAll, findSingle, getEntityRefs, read
-
-
-
-
Method Detail
-
getAllByClient
public List<UserPortal> getAllByClient(IEntityContext ec, Mandant client)
Description copied from interface:IUserPortalDao
Returns all user portal entities available for the given client.- Specified by:
getAllByClient
in interfaceIUserPortalDao
- Parameters:
ec
- entity context for database transactions.client
- to get the user portals for.- Returns:
- all user portal entities available for the given client.
-
getForMasterServer
public PagedResult<UserPortal> getForMasterServer(IEntityContext ec, int page, int pageSize)
Description copied from interface:IUserPortalDao
Returns all user portal entities available on the master server.- Specified by:
getForMasterServer
in interfaceIUserPortalDao
- Parameters:
ec
- entity context for database transactions.page
- to get.pageSize
- size of the page to get. Defines the size of the returned sub list.- Returns:
- all user portal entities available on the master server.
-
getByUuid
public UserPortal getByUuid(IEntityContext ec, UUID uuid)
Description copied from interface:IUserPortalDao
Returns the user portal entity with the given UUID.- Specified by:
getByUuid
in interfaceIUserPortalDao
- Parameters:
ec
- Entity context for database transactions.uuid
- UUID of the user portal to get.- Returns:
- The user portal entity with the given UUID, or null if no such entity exists.
-
getForFrontendServer
public PagedResult<UserPortal> getForFrontendServer(IEntityContext ec, FrontendServer frontendServer, int page, int pageSize)
Description copied from interface:IUserPortalDao
Returns all user portal entities available on the given frontend server.- Specified by:
getForFrontendServer
in interfaceIUserPortalDao
- Parameters:
ec
- entity context for database transactions.frontendServer
- to get the user portals for.page
- to get.pageSize
- size of the page to get. Defines the size of the returned sub list.- Returns:
- all user portal entities available on the given frontend server.
-
assertUserPortal
public void assertUserPortal(IEntityContext ec, UserPortal portal)
Description copied from interface:IUserPortalDao
Checks if the user portal can be persisted (create/update). If the state of the user portal does not allow persisting than aDatabaseAccessException
will be thrown.- Specified by:
assertUserPortal
in interfaceIUserPortalDao
- Parameters:
ec
- Entity context for accessing the database.portal
- A portal to check.
-
getPreActionHook
protected IFCDaoActionHook<UserPortal> getPreActionHook()
- Overrides:
getPreActionHook
in classGenericDao<UserPortal>
-
getPostActionHook
protected IFCDaoActionHook<UserPortal> getPostActionHook()
- Overrides:
getPostActionHook
in classGenericDao<UserPortal>
-
-