Package de.xima.fc.api.entity
Class ProjektAPI
- java.lang.Object
- 
- de.xima.fc.api.ASubAPI
- 
- de.xima.fc.api.entity.AEntityAPI<Projekt>
- 
- de.xima.fc.api.entity.ProjektAPI
 
 
 
- 
 public class ProjektAPI extends AEntityAPI<Projekt> API class for manipulation ofProjektentities.- Author:
- XIMA MEDIA GmbH
 
- 
- 
Field Summary- 
Fields inherited from class de.xima.fc.api.entity.AEntityAPIentityClass
 
- 
 - 
Constructor SummaryConstructors Constructor Description ProjektAPI()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ProjektaddProjektRessource(UserContext uc, Projekt projekt, ProjektRessource ressource)Projektcopy(UserContext uc, Projekt projekt, long id, long formVersionId, long workflowVersionId)List<BenutzerGruppe>getAccessGroups(UserContext uc, Projekt project)List<Projekt>getAllByClient(UserContext uc, Mandant mandant, boolean includeTemplates)List<Projekt>getAllByClient(UserContext uc, Mandant mandant, String scope, boolean includeTemplates)List<Projekt>getAllByEditorUser(UserContext uc, Benutzer editor, Mandant client)Gets all projects where the given user is editor ofList<Projekt>getAllByEditorUser(UserContext uc, Benutzer editor, Mandant client, String projectScope)List<Projekt>getAllByMandant(UserContext uc, Mandant mandant)Deprecated.List<Projekt>getAllByMandantAndStatus(UserContext uc, Mandant mandant, Boolean isOnline)Method for determining all projects of a client and its online status.List<Projekt>getAllTemplatesByClient(UserContext uc, Mandant mandant)List<Projekt>getAllTemplatesByClient(UserContext uc, Mandant mandant, String scope)ProjektgetByName(UserContext uc, long mandantId, String name)Method for determining aProjektby name.ProjektgetByUUID(UserContext uc, Mandant client, String uuid)ProjektgetByUUID(UserContext uc, Mandant client, UUID uuid)FormVersiongetCurrentFormVersion(UserContext uc, Projekt projekt, FrontendServer fs)Method for determining the current version of a project.Map<String,String>getCustomAttributes(UserContext uc, Projekt project)List<BenutzerGruppe>getEditorGruppen(UserContext uc, long projektId)Method for determining theBenutzerGruppewho are authorized to edit the project.ProjektimportProjekt(UserContext uc, Mandant mandant, byte[] bytes, String name, String description, String title)Method for importing a project for a client.booleanisActivationAllowed(UserContext uc, Projekt projekt)BooleanisEditingAllowed(UserContext uc, Projekt projekt, Benutzer ben)booleanisFsAllowed(UserContext uc, Projekt project, FrontendServer fs)Method for testing whether the project may be called via the frontend server.BooleanisZugriffsberechtigt(UserContext uc, Projekt projekt, Benutzer benutzer)Deprecated.booleanisZugriffsbeschraenkt(UserContext uc, Projekt projekt)Method for determining if aProjektis access limited.Projektupdate(UserContext uc, Projekt entity)Method for updating a entity.Projekt[]update(UserContext uc, Projekt[] entities)Method for updating multiple entities.- 
Methods inherited from class de.xima.fc.api.entity.AEntityAPIcreate, create, delete, delete, deleteAllBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getSingleAttributes, getSingleAttributes, resultTotalCount, resultTotalCount
 - 
Methods inherited from class de.xima.fc.api.ASubAPIgetHandlerProvider
 
- 
 
- 
- 
- 
Method Detail- 
getByNamepublic Projekt getByName(UserContext uc, long mandantId, String name) Method for determining aProjektby name.- Parameters:
- uc-- UserContextthe user context in which the action is to be performed.
- mandantId- ID of the client for which the project is to be determined.
- name-- Stringthe name of the searched- Projekts.
- Returns:
- Projektwhich was found.
- Since:
- 2.4.3
 
 - 
getEditorGruppenpublic List<BenutzerGruppe> getEditorGruppen(UserContext uc, long projektId) Method for determining theBenutzerGruppewho are authorized to edit the project.- Parameters:
- uc-- UserContextthe user context in which the action is to be performed.
- projektId- ID of the project for which the project is to be determined.
- Returns:
- Projektwhich was found.
- Since:
- 2.4.3
 
 - 
getAccessGroupspublic List<BenutzerGruppe> getAccessGroups(UserContext uc, Projekt project) 
 - 
getCurrentFormVersionpublic FormVersion getCurrentFormVersion(UserContext uc, Projekt projekt, FrontendServer fs) Method for determining the current version of a project.- Parameters:
- uc-- UserContextthe user context in which the action is to be performed.
- projekt-- Projektwhose- FormVersionis to be determined.
- fs-- FrontendServerthe frontend server that wants to get the data.
- Returns:
- the currend activated FormVersionof theProjekts.
- Since:
- 2.4.3
 
 - 
isZugriffsberechtigt@Deprecated public Boolean isZugriffsberechtigt(UserContext uc, Projekt projekt, Benutzer benutzer) Deprecated.Method for determining if a user is allowed to access a project.- Parameters:
- uc-- UserContextthe user context in which the action is to be performed.
- projekt-- Projektagainst which the access authorization is checked.
- benutzer-- Benutzerwhose access authorization is being checked.
- Returns:
- trueif- Benutzerto the- Projektallowed to access.
- Since:
- 2.4.3
 
 - 
isEditingAllowedpublic 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.
 
 - 
isZugriffsbeschraenktpublic boolean isZugriffsbeschraenkt(UserContext uc, Projekt projekt) Method for determining if aProjektis access limited.- Parameters:
- uc-- UserContextthe user context in which the action is to be performed.
- projekt- which should be tested.
- Returns:
- trueif a- Projektis access limited
- Since:
- 2.4.3
 
 - 
getAllByClientpublic List<Projekt> getAllByClient(UserContext uc, Mandant mandant, boolean includeTemplates) 
 - 
getAllByClientpublic List<Projekt> getAllByClient(UserContext uc, Mandant mandant, String scope, boolean includeTemplates) 
 - 
getAllTemplatesByClientpublic List<Projekt> getAllTemplatesByClient(UserContext uc, Mandant mandant) 
 - 
getAllTemplatesByClientpublic List<Projekt> getAllTemplatesByClient(UserContext uc, Mandant mandant, String scope) 
 - 
getAllByMandantAndStatuspublic List<Projekt> getAllByMandantAndStatus(UserContext uc, Mandant mandant, Boolean isOnline) Method for determining all projects of a client and its online status.- Parameters:
- uc-- UserContextthe user context in which the action is to be performed.
- mandant- whose- Projektis to be determined.
- isOnline-- trueif only released projects should be displayed.
- Returns:
- Listwith- Projekts
- Since:
- 2.4.3
 
 - 
getAllByEditorUserpublic List<Projekt> getAllByEditorUser(UserContext uc, Benutzer editor, Mandant client) Gets all projects where the given user is editor of- Parameters:
- uc-- UserContext
- editor-- Benutzereidtor of the projects
- client-- Mandantclient of the projects
- Returns:
- Listof- Projekts
- Since:
- 6.0.0
 
 - 
getAllByEditorUserpublic List<Projekt> getAllByEditorUser(UserContext uc, Benutzer editor, Mandant client, String projectScope) 
 - 
addProjektRessourcepublic Projekt addProjektRessource(UserContext uc, Projekt projekt, ProjektRessource ressource) 
 - 
importProjektpublic Projekt importProjekt(UserContext uc, Mandant mandant, byte[] bytes, String name, String description, String title) throws Exception Method for importing a project for a client.- Parameters:
- uc-- UserContextthe user context in which the action is to be performed.
- mandant-- Mandantwhich the project is associated.
- bytes- of the project archive.
- name- Project name, if different from the name specified in the archive (otherwise- null).
- description- Project description, if different from the description given in the archive (otherwise- null).
- title- Project title, if different from the title in the archive (otherwise- null).
- Returns:
- the imported Projektor null if the import was not successful.
- Throws:
- Exception- If a error occurs when creating.
- Since:
- 2.4.3
 
 - 
isActivationAllowedpublic boolean isActivationAllowed(UserContext uc, Projekt projekt) 
 - 
isFsAllowedpublic boolean isFsAllowed(UserContext uc, Projekt project, FrontendServer fs) Method for testing whether the project may be called via the frontend server.- Parameters:
- uc-- UserContextthe user context in which the action is to be performed.
- project-- Projektwhose is to be checked.
- fs-- FrontendServerwhich is to test.
- Returns:
- Boolean- trueif the project is allowed to load on the- FrontendServer, otherwise false.
 
 - 
updatepublic Projekt update(UserContext uc, Projekt entity) Description copied from class:AEntityAPIMethod for updating a entity.- Overrides:
- updatein class- AEntityAPI<Projekt>
- Parameters:
- uc-- UserContextthe user context in which the action is to be performed.
- entity- the entity to be update.
- Returns:
- The updated entity.
 
 - 
updatepublic Projekt[] update(UserContext uc, Projekt[] entities) Description copied from class:AEntityAPIMethod for updating multiple entities.- Overrides:
- updatein class- AEntityAPI<Projekt>
- Parameters:
- uc-- UserContextthe user context in which the action is to be performed.
- entities- a- Arrayof the entities to be updated.
- Returns:
- Arraywith the updated entities.
 
 - 
copypublic Projekt copy(UserContext uc, Projekt projekt, long id, long formVersionId, long workflowVersionId) throws Exception - Throws:
- Exception
 
 - 
getByUUIDpublic Projekt getByUUID(UserContext uc, Mandant client, String uuid) 
 - 
getByUUIDpublic Projekt getByUUID(UserContext uc, Mandant client, UUID uuid) 
 - 
getCustomAttributespublic Map<String,String> getCustomAttributes(UserContext uc, Projekt project) 
 - 
getAllByMandant@Deprecated public List<Projekt> getAllByMandant(UserContext uc, Mandant mandant) Deprecated.Method for determining all project of a client.- Parameters:
- uc-- UserContextthe user context in which the action is to be performed.
- mandant- whose- Projekte is to be determined.
- Returns:
- Listwith- Projekts
 
 
- 
 
-