public class ProjektDao extends MandantDependentBaseDao<Projekt> implements IProjektDao
Constructor and Description |
---|
ProjektDao() |
Modifier and Type | Method and Description |
---|---|
List<Projekt> |
allByClient(IEntityContext ec,
Mandant client,
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 client) |
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 another
Projekt 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 another
Projekt 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) |
protected IFCDaoActionHook<Projekt> |
getPostActionHook() |
protected IFCDaoActionHook<Projekt> |
getPreActionHook() |
byte[] |
getPreviewImage(IEntityContext ec,
Projekt project) |
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 project,
FrontendServer fs) |
boolean |
isNameExisiting(IEntityContext ec,
Mandant client,
String name)
Returns whether or not the given project name exists within the given client
|
boolean |
isTitleExisiting(IEntityContext ec,
Mandant client,
String name)
Returns whether or not the given project title exists within the given client
|
boolean |
isZugriffsberechtigt(IEntityContext ec,
Projekt project,
Benutzer user) |
void |
updatePreviewImage(IEntityContext ec,
Projekt project,
byte[] data) |
getEntityRefs, read
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEntityRefs, read
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
public Projekt getByUUID(IEntityContext ec, Mandant client, String uuid)
getByUUID
in interface IProjektDao
public Projekt getByUUID(IEntityContext ec, Mandant client, UUID uuid)
getByUUID
in interface IProjektDao
public byte[] getPreviewImage(IEntityContext ec, Projekt project)
getPreviewImage
in interface IProjektDao
public boolean isActivationAllowed(IEntityContext ec, Projekt projekt)
isActivationAllowed
in interface IProjektDao
public boolean isZugriffsberechtigt(IEntityContext ec, Projekt project, Benutzer user)
isZugriffsberechtigt
in interface IProjektDao
public boolean isEditingAllowed(IEntityContext ec, Projekt p, Benutzer ben)
isEditingAllowed
in interface IProjektDao
public boolean isFsAllowed(IEntityContext ec, Projekt project, FrontendServer fs)
isFsAllowed
in interface IProjektDao
public List<Projekt> getProjektByEditorBenutzer(IEntityContext ec, Benutzer benutzer, Mandant mandant)
getProjektByEditorBenutzer
in interface IProjektDao
public List<Projekt> getProjektByEditorBenutzer(IEntityContext ec, Benutzer benutzer, Mandant mandant, String projectScope)
getProjektByEditorBenutzer
in interface IProjektDao
public List<Projekt> allVisibleProjects(IEntityContext ec, Benutzer benutzer, Mandant mandant, String projectScope, boolean includeTemplates)
allVisibleProjects
in interface IProjektDao
public List<Projekt> allVisibleProjects(IEntityContext ec, Benutzer benutzer, Mandant mandant, String projectScope, boolean includeTemplates, de.xima.cmn.criteria.QueryCriteriaManager customQcm)
allVisibleProjects
in interface IProjektDao
public de.xima.cmn.criteria.QueryCriteriaManager allVisibleProjectsQcm(IEntityContext ec, Benutzer user, Mandant client, String projectScope, boolean includeTemplates)
allVisibleProjectsQcm
in interface IProjektDao
public List<Projekt> allEditableProjects(IEntityContext ec, Benutzer benutzer, Mandant mandant, String projectScope, boolean includeTemplates)
allEditableProjects
in interface IProjektDao
public List<Projekt> allEditableProjects(IEntityContext ec, Benutzer benutzer, Mandant mandant, String projectScope, boolean includeTemplates, de.xima.cmn.criteria.QueryCriteriaManager customQcm)
allEditableProjects
in interface IProjektDao
@Deprecated public List<Projekt> allByMandant(IEntityContext ec, Mandant mandant)
allByClient(IEntityContext, Mandant, boolean)
allByMandant
in interface IProjektDao
public List<Projekt> allByClient(IEntityContext ec, Mandant client, boolean includeTemplates)
allByClient
in interface IProjektDao
public List<Projekt> allByClient(IEntityContext ec, Mandant client, String scope, boolean includeTemplates)
allByClient
in interface IProjektDao
public List<Projekt> allTemplatesByClient(IEntityContext ec, Mandant client)
allTemplatesByClient
in interface IProjektDao
public String findUniqueName(IEntityContext ec, Mandant client, String candidate, Projekt exclude)
IProjektDao
Projekt
in the given client other than the excluded data
source. An index will be added to the candidate if necessary.findUniqueName
in interface IProjektDao
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 searchpublic String findUniqueTitle(IEntityContext ec, Mandant client, String candidate, Projekt exclude)
IProjektDao
Projekt
in the given client other than the excluded data
source. An index will be added to the candidate if necessary.findUniqueTitle
in interface IProjektDao
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 searchpublic boolean isNameExisiting(IEntityContext ec, Mandant client, String name)
IProjektDao
isNameExisiting
in interface IProjektDao
ec
- IEntityContext
to be usedclient
- Mandant
for which to check uniquenesspublic boolean isTitleExisiting(IEntityContext ec, Mandant client, String name)
IProjektDao
isTitleExisiting
in interface IProjektDao
ec
- IEntityContext
to be usedclient
- Mandant
for which to check uniquenesspublic List<Projekt> allTemplatesByClient(IEntityContext ec, Mandant client, String scope)
allTemplatesByClient
in interface IProjektDao
public void updatePreviewImage(IEntityContext ec, Projekt project, byte[] data)
updatePreviewImage
in interface IProjektDao
protected IFCDaoActionHook<Projekt> getPreActionHook()
getPreActionHook
in class GenericDao<Projekt>
protected IFCDaoActionHook<Projekt> getPostActionHook()
getPostActionHook
in class GenericDao<Projekt>
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.