Interface IProjektHandler
- All Superinterfaces:
IAPIHandler,IGenericHandler,Serializable
- All Known Implementing Classes:
ProjektHandler
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionaddProjektRessource(UserContext uc, long projektId, long ressourceId) copy(UserContext uc, Projekt projekt, long id, long formVersionId, long workflowVersionId) getAccessGroups(UserContext uc, Projekt project) getAllByClient(UserContext uc, Mandant mandant, boolean includeTemplates) getAllByClient(UserContext uc, Mandant mandant, String scope, boolean includeTemplates) getAllByEditorUser(UserContext uc, Benutzer editor, Mandant client, String projectScope) Deprecated.getAllByMandant(UserContext uc, Mandant mandant) Deprecated.getAllTemplatesByClient(UserContext uc, Mandant client) getAllTemplatesByClient(UserContext uc, Mandant client, String scope) getByUUID(UserContext uc, Mandant client, String uuid) getByUUID(UserContext uc, Mandant client, UUID uuid) getCurrentFormVersion(UserContext uc, Projekt projekt, FrontendServer fs) Gets the current form version.getCustomAttributes(UserContext uc, Projekt project) getInitializedById(UserContext uc, Long projectId) Reads the project by the given ID and initializes it.importProjekt(UserContext uc, Mandant mandant, byte[] bytes, String name, String beschreibung, String title) booleanisActivationAllowed(UserContext uc, Projekt projekt) isEditingAllowed(UserContext uc, Projekt projekt, Benutzer ben) Deprecated.booleanisFsAllowed(UserContext uc, Projekt project, FrontendServer fs) Checks on whether the project can be accessed via the frontend server.isZugriffsberechtigt(UserContext uc, Projekt projekt, Benutzer ben) Deprecated.isZugriffsbeschraenkt(UserContext uc, Projekt projekt) Methods inherited from interface de.xima.fc.com.interfaces.IAPIHandler
getNameMethods 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, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, update, update
-
Method Details
-
getCurrentFormVersion
Gets the current form version.- Parameters:
uc- the ucprojekt- the projektfs- theFrontendServer- Returns:
- the current form version
-
getAccessGroups
-
isEditingAllowed
Deprecated.- 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.
- Since:
- 8.0.0
-
isZugriffsbeschraenkt
-
isZugriffsberechtigt
Deprecated. -
importProjekt
Projekt importProjekt(UserContext uc, Mandant mandant, byte[] bytes, String name, String beschreibung, String title) throws Exception - Throws:
Exception
-
addProjektRessource
-
getInitializedById
Reads the project by the given ID and initializes it.- Parameters:
uc- UserContext to use for DB transactionprojectId- ID of the project- Returns:
- the initialized project
-
getAllByClient
-
getAllByClient
List<Projekt> getAllByClient(UserContext uc, Mandant mandant, String scope, boolean includeTemplates) -
getAllTemplatesByClient
-
getAllTemplatesByClient
-
getAllByEditorUser
@Deprecated List<Projekt> getAllByEditorUser(UserContext uc, Benutzer editor, Mandant client, String projectScope) Deprecated.Gets all projects where the given user is editor of- Parameters:
uc-UserContexteditor- Editor user of the projectsclient-Mandantclient of the projectsprojectScope- the scope of the projects to load- Returns:
ListofProjekts- Since:
- 6.0.0
-
copy
Projekt copy(UserContext uc, Projekt projekt, long id, long formVersionId, long workflowVersionId) throws Exception - Throws:
Exception
-
isActivationAllowed
-
isFsAllowed
Checks on whether the project can be accessed via the frontend server.- Parameters:
uc- theUserContextto useproject- the projectfs- the frontendserver- Returns:
Booleanof theProjektis allowed on thisFrontendServer- Since:
- 4.3.0
-
getByUUID
-
getByUUID
-
getCustomAttributes
-
getAllByMandant
Deprecated.- Parameters:
uc- theUserContextto usemandant- the client- Returns:
ListofProjekts
-
getAllByClient(UserContext, Mandant, boolean)