Package de.xima.fc.dao.interfaces
Interface IProjektDao
- All Superinterfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<Projekt,
,Long, IEntityContext> IGenericDao<Projekt>
,IMandantDependentBaseDao<Projekt>
- All Known Implementing Classes:
ProjektDao
-
Method Summary
Modifier and TypeMethodDescriptionallByClient
(IEntityContext ec, Mandant mandant, boolean includeTemplates) allByClient
(IEntityContext ec, Mandant client, String scope, boolean includeTemplates) allByMandant
(IEntityContext ec, Mandant mandant) Deprecated.allEditableProjects
(IEntityContext ec, Benutzer benutzer, Mandant mandant, String projectScope, boolean includeTemplates) Deprecated.allEditableProjects
(IEntityContext ec, Benutzer benutzer, Mandant mandant, String projectScope, boolean includeTemplates, de.xima.cmn.criteria.QueryCriteriaManager customQcm) Deprecated.allTemplatesByClient
(IEntityContext ec, Mandant mandant) allTemplatesByClient
(IEntityContext ec, Mandant client, String scope) allVisibleProjects
(IEntityContext ec, Benutzer benutzer, Mandant mandant, String projectScope, boolean includeTemplates) Deprecated.allVisibleProjects
(IEntityContext ec, Benutzer benutzer, Mandant mandant, String projectScope, boolean includeTemplates, de.xima.cmn.criteria.QueryCriteriaManager customQcm) Deprecated.de.xima.cmn.criteria.QueryCriteriaManager
allVisibleProjectsQcm
(IEntityContext ec, Benutzer user, Mandant client, String projectScope, boolean includeTemplates) Deprecated.findUniqueName
(IEntityContext ec, Mandant client, String candidate, Projekt exclude) Returns a name that is not taken by anotherProjekt
in the given client other than the excluded data source.findUniqueTitle
(IEntityContext ec, Mandant client, String candidate, Projekt exclude) Returns a title that is not taken by anotherProjekt
in the given client other than the excluded data source.getAccessableProjects
(IEntityContext ec, IUser user, Mandant client) Returns all projects which are editable or visible by the user groups of the user in the given client.getByUUID
(IEntityContext ec, Mandant client, String uuid) getByUUID
(IEntityContext ec, Mandant client, UUID uuid) byte[]
getPreviewImage
(IEntityContext ec, Projekt project) getPreviewImageVersion
(IEntityContext ec, Projekt project) getProjectsWithPreviewImage
(IEntityContext ec, Mandant client) getProjektByEditorBenutzer
(IEntityContext ec, Benutzer benutzer, Mandant mandant) Deprecated.getProjektByEditorBenutzer
(IEntityContext ec, Benutzer benutzer, Mandant mandant, String projectScope) Deprecated.boolean
isActivationAllowed
(IEntityContext ec, Projekt projekt) boolean
isEditingAllowed
(IEntityContext ec, Projekt p, Benutzer ben) Deprecated.boolean
isFsAllowed
(IEntityContext ec, Projekt p, FrontendServer fs) boolean
isNameExisiting
(IEntityContext ec, Mandant client, String name) Returns whether or not the given project name exists within the given clientboolean
isTitleExisiting
(IEntityContext ec, Mandant client, String name) Returns whether or not the given project title exists within the given clientboolean
isZugriffsberechtigt
(IEntityContext ec, Projekt p, Benutzer ben) Deprecated.void
updatePreviewImage
(IEntityContext ec, Projekt project, byte[] data) 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 Details
-
getByUUID
-
getByUUID
-
isActivationAllowed
-
isFsAllowed
-
getPreviewImage
-
getProjectsWithPreviewImage
- Parameters:
ec
- Entity context for accessing the database.client
- Client to which to limit the search. May benull
, in which case no restriction is applied.- Returns:
- A list of all IDs of projects for which a preview image is available.
-
allByClient
-
allByClient
List<Projekt> allByClient(IEntityContext ec, Mandant client, String scope, boolean includeTemplates) -
allTemplatesByClient
-
allTemplatesByClient
-
findUniqueName
Returns a name that is not taken by anotherProjekt
in the given client other than the excluded data source. An index will be added to the candidate if necessary.- Parameters:
ec
-IEntityContext
to be usedclient
-Mandant
for which a unique project name should be generatedcandidate
-String
project name candiate to be made uniqueexclude
-Projekt
project to be excluded from search- Returns:
- unique project name in the context of the given client
- Since:
- 6.6.0
-
findUniqueTitle
Returns a title that is not taken by anotherProjekt
in the given client other than the excluded data source. An index will be added to the candidate if necessary.- Parameters:
ec
-IEntityContext
to be usedclient
-Mandant
for which a unique project title should be generatedcandidate
-String
project title candiate to be made uniqueexclude
-Projekt
project to be excluded from search- Returns:
- unique project title in the context of the given client
- Since:
- 6.6.0
-
isNameExisiting
Returns whether or not the given project name exists within the given client- Parameters:
ec
-IEntityContext
to be usedclient
-Mandant
for which to check uniquenessname
- Project name to check- Returns:
- whether or not the given name is unique
- Since:
- 6.6.0
-
isTitleExisiting
Returns whether or not the given project title exists within the given client- Parameters:
ec
-IEntityContext
to be usedclient
-Mandant
for which to check uniquenessname
- Project title to check- Returns:
- whether or not the given title is unique
- Since:
- 6.6.0
-
updatePreviewImage
-
allByMandant
Deprecated. -
getPreviewImageVersion
- Parameters:
ec
- Entity context for accessing the database.project
- Project for which to find the preview image.- Returns:
- The current (locking) version of the preview image.
-
getAccessableProjects
Returns all projects which are editable or visible by the user groups of the user in the given client.- Parameters:
ec
-IEntityContext
to be useduser
-IUser
who has the user groupsclient
-Mandant
containing the user groups- Returns:
- all projects which are visible or editable for the user in the given client
- Since:
- 8.0.0
-
isZugriffsberechtigt
Deprecated. -
isEditingAllowed
Deprecated. -
getProjektByEditorBenutzer
@Deprecated List<Projekt> getProjektByEditorBenutzer(IEntityContext ec, Benutzer benutzer, Mandant mandant) Deprecated. -
getProjektByEditorBenutzer
@Deprecated List<Projekt> getProjektByEditorBenutzer(IEntityContext ec, Benutzer benutzer, Mandant mandant, String projectScope) Deprecated. -
allVisibleProjects
@Deprecated List<Projekt> allVisibleProjects(IEntityContext ec, Benutzer benutzer, Mandant mandant, String projectScope, boolean includeTemplates) Deprecated. -
allVisibleProjects
@Deprecated List<Projekt> allVisibleProjects(IEntityContext ec, Benutzer benutzer, Mandant mandant, String projectScope, boolean includeTemplates, de.xima.cmn.criteria.QueryCriteriaManager customQcm) Deprecated. -
allEditableProjects
@Deprecated List<Projekt> allEditableProjects(IEntityContext ec, Benutzer benutzer, Mandant mandant, String projectScope, boolean includeTemplates) Deprecated. -
allEditableProjects
@Deprecated List<Projekt> allEditableProjects(IEntityContext ec, Benutzer benutzer, Mandant mandant, String projectScope, boolean includeTemplates, de.xima.cmn.criteria.QueryCriteriaManager customQcm) Deprecated. -
allVisibleProjectsQcm
@Deprecated de.xima.cmn.criteria.QueryCriteriaManager allVisibleProjectsQcm(IEntityContext ec, Benutzer user, Mandant client, String projectScope, boolean includeTemplates) Deprecated.
-
allByClient(IEntityContext, Mandant, boolean)