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
public interface IProjektDao extends IMandantDependentBaseDao<Projekt>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description List<Projekt>
allByClient(IEntityContext ec, Mandant mandant, boolean includeTemplates)
List<Projekt>
allByClient(IEntityContext ec, Mandant client, String scope, boolean includeTemplates)
List<Projekt>
allByMandant(IEntityContext ec, Mandant mandant)
Deprecated.List<Projekt>
allEditableProjects(IEntityContext ec, Benutzer benutzer, Mandant mandant, String projectScope, boolean includeTemplates)
List<Projekt>
allEditableProjects(IEntityContext ec, Benutzer benutzer, Mandant mandant, String projectScope, boolean includeTemplates, de.xima.cmn.criteria.QueryCriteriaManager customQcm)
List<Projekt>
allTemplatesByClient(IEntityContext ec, Mandant mandant)
List<Projekt>
allTemplatesByClient(IEntityContext ec, Mandant client, String scope)
List<Projekt>
allVisibleProjects(IEntityContext ec, Benutzer benutzer, Mandant mandant, String projectScope, boolean includeTemplates)
List<Projekt>
allVisibleProjects(IEntityContext ec, Benutzer benutzer, Mandant mandant, String projectScope, boolean includeTemplates, de.xima.cmn.criteria.QueryCriteriaManager customQcm)
de.xima.cmn.criteria.QueryCriteriaManager
allVisibleProjectsQcm(IEntityContext ec, Benutzer user, Mandant client, String projectScope, boolean includeTemplates)
String
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.String
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.Projekt
getByUUID(IEntityContext ec, Mandant client, String uuid)
Projekt
getByUUID(IEntityContext ec, Mandant client, UUID uuid)
byte[]
getPreviewImage(IEntityContext ec, Projekt project)
String
getPreviewImageVersion(IEntityContext ec, Projekt project)
Set<Long>
getProjectsWithPreviewImage(IEntityContext ec, Mandant client)
List<Projekt>
getProjektByEditorBenutzer(IEntityContext ec, Benutzer benutzer, Mandant mandant)
List<Projekt>
getProjektByEditorBenutzer(IEntityContext ec, Benutzer benutzer, Mandant mandant, String projectScope)
boolean
isActivationAllowed(IEntityContext ec, Projekt projekt)
boolean
isEditingAllowed(IEntityContext ec, Projekt p, Benutzer ben)
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
getEntityRefs, read
-
-
-
-
Method Detail
-
getByUUID
Projekt getByUUID(IEntityContext ec, Mandant client, String uuid)
-
getByUUID
Projekt getByUUID(IEntityContext ec, Mandant client, UUID uuid)
-
isActivationAllowed
boolean isActivationAllowed(IEntityContext ec, Projekt projekt)
-
isZugriffsberechtigt
@Deprecated boolean isZugriffsberechtigt(IEntityContext ec, Projekt p, Benutzer ben)
Deprecated.
-
isEditingAllowed
boolean isEditingAllowed(IEntityContext ec, Projekt p, Benutzer ben)
-
isFsAllowed
boolean isFsAllowed(IEntityContext ec, Projekt p, FrontendServer fs)
-
getPreviewImage
byte[] getPreviewImage(IEntityContext ec, Projekt project)
-
getProjectsWithPreviewImage
Set<Long> getProjectsWithPreviewImage(IEntityContext ec, Mandant client)
- 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
List<Projekt> allByClient(IEntityContext ec, Mandant mandant, boolean includeTemplates)
-
allByClient
List<Projekt> allByClient(IEntityContext ec, Mandant client, String scope, boolean includeTemplates)
-
allTemplatesByClient
List<Projekt> allTemplatesByClient(IEntityContext ec, Mandant mandant)
-
allTemplatesByClient
List<Projekt> allTemplatesByClient(IEntityContext ec, Mandant client, String scope)
-
getProjektByEditorBenutzer
List<Projekt> getProjektByEditorBenutzer(IEntityContext ec, Benutzer benutzer, Mandant mandant)
-
getProjektByEditorBenutzer
List<Projekt> getProjektByEditorBenutzer(IEntityContext ec, Benutzer benutzer, Mandant mandant, String projectScope)
-
allVisibleProjects
List<Projekt> allVisibleProjects(IEntityContext ec, Benutzer benutzer, Mandant mandant, String projectScope, boolean includeTemplates)
-
allVisibleProjects
List<Projekt> allVisibleProjects(IEntityContext ec, Benutzer benutzer, Mandant mandant, String projectScope, boolean includeTemplates, de.xima.cmn.criteria.QueryCriteriaManager customQcm)
-
allEditableProjects
List<Projekt> allEditableProjects(IEntityContext ec, Benutzer benutzer, Mandant mandant, String projectScope, boolean includeTemplates)
-
allEditableProjects
List<Projekt> allEditableProjects(IEntityContext ec, Benutzer benutzer, Mandant mandant, String projectScope, boolean includeTemplates, de.xima.cmn.criteria.QueryCriteriaManager customQcm)
-
allVisibleProjectsQcm
de.xima.cmn.criteria.QueryCriteriaManager allVisibleProjectsQcm(IEntityContext ec, Benutzer user, Mandant client, String projectScope, boolean includeTemplates)
-
findUniqueName
String 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. 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
String 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. 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
boolean isNameExisiting(IEntityContext ec, Mandant client, String name)
Returns whether or not the given project name exists within the given client- Parameters:
ec
-IEntityContext
to be usedclient
-Mandant
for which to check uniquenesscandidate
-String
project name to check- Returns:
- whether or not the given name is unique
- Since:
- 6.6.0
-
isTitleExisiting
boolean isTitleExisiting(IEntityContext ec, Mandant client, String name)
Returns whether or not the given project title exists within the given client- Parameters:
ec
-IEntityContext
to be usedclient
-Mandant
for which to check uniquenesscandidate
-String
project title to check- Returns:
- whether or not the given title is unique
- Since:
- 6.6.0
-
updatePreviewImage
void updatePreviewImage(IEntityContext ec, Projekt project, byte[] data)
-
allByMandant
@Deprecated List<Projekt> allByMandant(IEntityContext ec, Mandant mandant)
Deprecated.
-
getPreviewImageVersion
String getPreviewImageVersion(IEntityContext ec, Projekt project)
- 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.
-
-