Package de.xima.fc.dao.interfaces
Interface IProjectPortalConfigDao
-
- All Superinterfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<ProjectPortalConfig,Long,IEntityContext>
,IGenericDao<ProjectPortalConfig>
- All Known Implementing Classes:
ProjectPortalConfigDao
public interface IProjectPortalConfigDao extends IGenericDao<ProjectPortalConfig>
DAO for reading and writingProjectPortalConfig
entities.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
assertProjectPortalConfig(IEntityContext ec, ProjectPortalConfig config)
Checks if the project portal config can be persisted (create/update).ProjectPortalConfig
getByProjectAndPortal(IEntityContext ec, Projekt project, UserPortal portal)
Gets the project portal config for the given project and portal, if any.-
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
-
assertProjectPortalConfig
void assertProjectPortalConfig(IEntityContext ec, ProjectPortalConfig 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 aDatabaseAccessException
will 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.
-
getByProjectAndPortal
ProjectPortalConfig getByProjectAndPortal(IEntityContext ec, Projekt project, UserPortal portal)
Gets the project portal config 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 project portal config for the given project and portal, or null if none exists.
-
-