Interface IProjektHandler
-
- All Superinterfaces:
IAPIHandler
,IGenericHandler
,Serializable
- All Known Implementing Classes:
ProjektHandler
public interface IProjektHandler extends IGenericHandler
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
-
Methods inherited from interface de.xima.fc.com.interfaces.IAPIHandler
getName
-
Methods inherited from interface de.xima.fc.handler.interfaces.entity.IGenericHandler
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getSingleAttributes, getSingleAttributes, resultTotalCount, update, update
-
-
-
-
Method Detail
-
getCurrentFormVersion
FormVersion getCurrentFormVersion(UserContext uc, Projekt projekt, FrontendServer fs)
Gets the current form version.- Parameters:
uc
- the ucprojekt
- the projektfs
- theFrontendServer
- Returns:
- the current form version
-
getAccessGroups
List<BenutzerGruppe> getAccessGroups(UserContext uc, Projekt project)
-
isEditingAllowed
Boolean isEditingAllowed(UserContext uc, Projekt projekt, Benutzer ben)
- Parameters:
uc
- Current user context.projekt
- Project for which to check if the user may edit it.ben
- User to check.- Returns:
- Whether the user groups of the user allow editing the given form (project). Note that there may be other restrictions from the user's role etc that apply.
-
isZugriffsbeschraenkt
Boolean isZugriffsbeschraenkt(UserContext uc, Projekt projekt)
-
isZugriffsberechtigt
@Deprecated Boolean isZugriffsberechtigt(UserContext uc, Projekt projekt, Benutzer ben)
Deprecated.
-
importProjekt
Projekt importProjekt(UserContext uc, Mandant mandant, byte[] bytes, String name, String beschreibung, String title) throws Exception
- Throws:
Exception
-
addProjektRessource
Projekt addProjektRessource(UserContext uc, long projektId, long ressourceId)
-
getAllByClient
List<Projekt> getAllByClient(UserContext uc, Mandant mandant, boolean includeTemplates)
-
getAllByClient
List<Projekt> getAllByClient(UserContext uc, Mandant mandant, String scope, boolean includeTemplates)
-
getAllTemplatesByClient
List<Projekt> getAllTemplatesByClient(UserContext uc, Mandant client)
-
getAllTemplatesByClient
List<Projekt> getAllTemplatesByClient(UserContext uc, Mandant client, String scope)
-
getAllByEditorUser
List<Projekt> getAllByEditorUser(UserContext uc, Benutzer editor, Mandant client, String projectScope)
Gets all projects where the given user is editor of- Parameters:
uc
-UserContext
editor
-Benutzer
eidtor of the projectsclient
-Mandant
client of the projectsprojectScope
- the scope of the projects to load- Returns:
List
ofProjekt
s- Since:
- 6.0.0
-
copy
Projekt copy(UserContext uc, Projekt projekt, long id, long formVersionId, long workflowVersionId) throws Exception
- Throws:
Exception
-
isActivationAllowed
boolean isActivationAllowed(UserContext uc, Projekt projekt)
-
isFsAllowed
boolean isFsAllowed(UserContext uc, Projekt project, FrontendServer fs)
Checks on whether the project can be accessed via the frontend server.- Parameters:
uc
- theUserContext
to useproject
- the projectfs
- the frontendserver- Returns:
Boolean
of theProjekt
is allowed on thisFrontendServer
- Since:
- 4.3.0
-
getByUUID
Projekt getByUUID(UserContext uc, Mandant client, String uuid)
-
getByUUID
Projekt getByUUID(UserContext uc, Mandant client, UUID uuid)
-
getCustomAttributes
Map<String,String> getCustomAttributes(UserContext uc, Projekt project)
-
getAllByMandant
@Deprecated List<Projekt> getAllByMandant(UserContext uc, Mandant mandant)
Deprecated.- Parameters:
uc
- theUserContext
to usemandant
- the client- Returns:
List
ofProjekt
s
-
-