public class ProjektHandler extends GenericHandler implements IProjektHandler
LOG
Constructor and Description |
---|
ProjektHandler() |
Modifier and Type | Method and Description |
---|---|
Projekt |
addProjektRessource(UserContext uc,
long projektId,
long ressourceId) |
Projekt |
copy(UserContext uc,
Projekt projekt,
long sourceProjectId,
long formVersionId) |
List<Projekt> |
getAllByEditorUser(UserContext uc,
Benutzer editor,
Mandant client)
Gets all projects where the given user is editor of
|
List<Projekt> |
getAllByMandant(UserContext uc,
Mandant mandant) |
FormVersion |
getCurrentFormVersion(UserContext uc,
Projekt projekt,
FrontendServer fs)
Gets the current form version.
|
Projekt |
importProjekt(UserContext uc,
Mandant mandant,
byte[] bytes,
String name,
String beschreibung,
String title) |
boolean |
isActivationAllowed(UserContext uc,
Projekt projekt) |
Boolean |
isEditingAllowed(UserContext uc,
Projekt projekt,
Benutzer ben) |
boolean |
isFsAllowed(UserContext uc,
Projekt project,
FrontendServer fs)
Checks on whether the project can be accessed via the frontend server.
|
Boolean |
isZugriffsberechtigt(UserContext uc,
Projekt projekt,
Benutzer ben) |
Boolean |
isZugriffsbeschraenkt(UserContext uc,
Projekt projekt) |
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getBy, getById, getById, getById, resultTotalCount, update, update
getName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getBy, getById, getById, getById, 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 ucproject
- the projectfs
- the frontendserverpublic FormVersion getCurrentFormVersion(UserContext uc, Projekt projekt, FrontendServer fs)
getCurrentFormVersion
in interface IProjektHandler
uc
- the ucprojekt
- the projektpublic 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
public List<Projekt> getAllByMandant(UserContext uc, Mandant mandant)
getAllByMandant
in interface IProjektHandler
public List<Projekt> getAllByEditorUser(UserContext uc, Benutzer editor, Mandant client)
IProjektHandler
getAllByEditorUser
in interface IProjektHandler
uc
- UserContext
editor
- Benutzer
eidtor of the projectsclient
- Mandant
client of the projectsList
of Projekt
spublic Projekt copy(UserContext uc, Projekt projekt, long sourceProjectId, long formVersionId) throws Exception
copy
in interface IProjektHandler
Exception
Copyright © 2019 XIMA MEDIA GmbH. All rights reserved.