public class ProjektHandler extends GenericHandler implements IProjektHandler
LOG
Constructor and Description |
---|
ProjektHandler() |
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getSingleAttributes, getSingleAttributes, resultTotalCount, serializableList, update, update
getName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getSingleAttributes, getSingleAttributes, resultTotalCount, update, update
getName
public boolean isActivationAllowed(UserContext uc, Projekt projekt)
isActivationAllowed
in interface IProjektHandler
public boolean isFsAllowed(UserContext uc, Projekt project, FrontendServer fs)
isFsAllowed
in interface IProjektHandler
uc
- the UserContext
to useproject
- the projectfs
- the frontendserverBoolean
of the Projekt
is allowed on this FrontendServer
public FormVersion getCurrentFormVersion(UserContext uc, Projekt projekt, FrontendServer fs)
getCurrentFormVersion
in interface IProjektHandler
uc
- the ucprojekt
- the projektfs
- the FrontendServer
public Projekt addProjektRessource(UserContext uc, long projektId, long ressourceId)
addProjektRessource
in interface IProjektHandler
public Boolean isZugriffsbeschraenkt(UserContext uc, Projekt projekt)
isZugriffsbeschraenkt
in interface IProjektHandler
public Boolean isZugriffsberechtigt(UserContext uc, Projekt projekt, Benutzer ben)
isZugriffsberechtigt
in interface IProjektHandler
public Boolean isEditingAllowed(UserContext uc, Projekt projekt, Benutzer ben)
isEditingAllowed
in interface IProjektHandler
uc
- Current user context.projekt
- Project for which to check if the user may edit it.ben
- User to check.public Projekt importProjekt(UserContext uc, Mandant mandant, byte[] bytes, String name, String beschreibung, String title) throws Exception
importProjekt
in interface IProjektHandler
Exception
@Deprecated public List<Projekt> getAllByMandant(UserContext uc, Mandant mandant)
getAllByClient(UserContext, Mandant, boolean)
getAllByMandant
in interface IProjektHandler
uc
- the UserContext
to usemandant
- the clientList
of Projekt
spublic List<Projekt> getAllByClient(UserContext uc, Mandant mandant, boolean includeTemplates)
getAllByClient
in interface IProjektHandler
public List<Projekt> getAllByClient(UserContext uc, Mandant mandant, String scope, boolean includeTemplates)
getAllByClient
in interface IProjektHandler
public List<Projekt> getAllTemplatesByClient(UserContext uc, Mandant client)
getAllTemplatesByClient
in interface IProjektHandler
public List<Projekt> getAllTemplatesByClient(UserContext uc, Mandant client, String scope)
getAllTemplatesByClient
in interface IProjektHandler
public List<Projekt> getAllByEditorUser(UserContext uc, Benutzer editor, Mandant client, String projectScope)
IProjektHandler
getAllByEditorUser
in interface IProjektHandler
uc
- UserContext
editor
- Benutzer
eidtor of the projectsclient
- Mandant
client of the projectsprojectScope
- the scope of the projects to loadList
of Projekt
spublic Projekt copy(UserContext uc, Projekt projekt, long sourceProjectId, long formVersionId) throws Exception
copy
in interface IProjektHandler
Exception
public Projekt getByUUID(UserContext uc, Mandant client, String uuid)
getByUUID
in interface IProjektHandler
public Projekt getByUUID(UserContext uc, Mandant client, UUID uuid)
getByUUID
in interface IProjektHandler
public Map<String,String> getCustomAttributes(UserContext uc, Projekt project)
getCustomAttributes
in interface IProjektHandler
public List<BenutzerGruppe> getAccessGroups(UserContext uc, Projekt project)
getAccessGroups
in interface IProjektHandler
Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.