Package de.xima.fc.handler.entity
Class ProjektHandler
- java.lang.Object
-
- de.xima.fc.handler.AMSApiHandler
-
- de.xima.fc.handler.entity.GenericHandler
-
- de.xima.fc.handler.entity.ProjektHandler
-
- All Implemented Interfaces:
IAPIHandler,IGenericHandler,IProjektHandler,Serializable
public class ProjektHandler extends GenericHandler implements IProjektHandler
The Class ProjektHandler.- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.xima.fc.handler.entity.GenericHandler
LOG
-
-
Constructor Summary
Constructors Constructor Description ProjektHandler()
-
Method Summary
-
Methods inherited from class de.xima.fc.handler.entity.GenericHandler
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getSingleAttributes, getSingleAttributes, resultTotalCount, serializableList, update, update
-
Methods inherited from class de.xima.fc.handler.AMSApiHandler
getName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
isActivationAllowed
public boolean isActivationAllowed(UserContext uc, Projekt projekt)
- Specified by:
isActivationAllowedin interfaceIProjektHandler
-
isFsAllowed
public boolean isFsAllowed(UserContext uc, Projekt project, FrontendServer fs)
Checks on whether the project can be accessed via the frontend server.- Specified by:
isFsAllowedin interfaceIProjektHandler- Parameters:
uc- theUserContextto useproject- the projectfs- the frontendserver- Returns:
Booleanof theProjektis allowed on thisFrontendServer
-
getCurrentFormVersion
public FormVersion getCurrentFormVersion(UserContext uc, Projekt projekt, FrontendServer fs)
Gets the current form version.- Specified by:
getCurrentFormVersionin interfaceIProjektHandler- Parameters:
uc- the ucprojekt- the projektfs- theFrontendServer- Returns:
- the current form version
-
addProjektRessource
public Projekt addProjektRessource(UserContext uc, long projektId, long ressourceId)
- Specified by:
addProjektRessourcein interfaceIProjektHandler
-
isZugriffsbeschraenkt
public Boolean isZugriffsbeschraenkt(UserContext uc, Projekt projekt)
- Specified by:
isZugriffsbeschraenktin interfaceIProjektHandler
-
isZugriffsberechtigt
@Deprecated public Boolean isZugriffsberechtigt(UserContext uc, Projekt projekt, Benutzer ben)
Deprecated.- Specified by:
isZugriffsberechtigtin interfaceIProjektHandler
-
isEditingAllowed
public Boolean isEditingAllowed(UserContext uc, Projekt projekt, Benutzer ben)
- Specified by:
isEditingAllowedin interfaceIProjektHandler- 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.
-
importProjekt
public Projekt importProjekt(UserContext uc, Mandant mandant, byte[] bytes, String name, String beschreibung, String title) throws Exception
- Specified by:
importProjektin interfaceIProjektHandler- Throws:
Exception
-
getAllByMandant
@Deprecated public List<Projekt> getAllByMandant(UserContext uc, Mandant mandant)
Deprecated.- Specified by:
getAllByMandantin interfaceIProjektHandler- Parameters:
uc- theUserContextto usemandant- the client- Returns:
ListofProjekts
-
getAllByClient
public List<Projekt> getAllByClient(UserContext uc, Mandant mandant, boolean includeTemplates)
- Specified by:
getAllByClientin interfaceIProjektHandler
-
getAllByClient
public List<Projekt> getAllByClient(UserContext uc, Mandant mandant, String scope, boolean includeTemplates)
- Specified by:
getAllByClientin interfaceIProjektHandler
-
getAllTemplatesByClient
public List<Projekt> getAllTemplatesByClient(UserContext uc, Mandant client)
- Specified by:
getAllTemplatesByClientin interfaceIProjektHandler
-
getAllTemplatesByClient
public List<Projekt> getAllTemplatesByClient(UserContext uc, Mandant client, String scope)
- Specified by:
getAllTemplatesByClientin interfaceIProjektHandler
-
getAllByEditorUser
public List<Projekt> getAllByEditorUser(UserContext uc, Benutzer editor, Mandant client, String projectScope)
Description copied from interface:IProjektHandlerGets all projects where the given user is editor of- Specified by:
getAllByEditorUserin interfaceIProjektHandler- Parameters:
uc-UserContexteditor-Benutzereidtor of the projectsclient-Mandantclient of the projectsprojectScope- the scope of the projects to load- Returns:
ListofProjekts
-
copy
public Projekt copy(UserContext uc, Projekt projekt, long sourceProjectId, long formVersionId, long workflowVersionId) throws Exception
- Specified by:
copyin interfaceIProjektHandler- Throws:
Exception
-
getByUUID
public Projekt getByUUID(UserContext uc, Mandant client, String uuid)
- Specified by:
getByUUIDin interfaceIProjektHandler
-
getByUUID
public Projekt getByUUID(UserContext uc, Mandant client, UUID uuid)
- Specified by:
getByUUIDin interfaceIProjektHandler
-
getCustomAttributes
public Map<String,String> getCustomAttributes(UserContext uc, Projekt project)
- Specified by:
getCustomAttributesin interfaceIProjektHandler
-
getAccessGroups
public List<BenutzerGruppe> getAccessGroups(UserContext uc, Projekt project)
- Specified by:
getAccessGroupsin interfaceIProjektHandler
-
-