Package fr.becpg.repo.form.impl
Class BecpgFormServiceImpl
java.lang.Object
fr.becpg.repo.form.impl.BecpgFormServiceImpl
- All Implemented Interfaces:
BecpgFormService,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware
public class BecpgFormServiceImpl
extends Object
implements BecpgFormService, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
BecpgFormServiceImpl class.
- Version:
- $Id: $Id
- Author:
- matthieu
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) org.springframework.context.ApplicationContext(package private) List<ColumnDecorator>(package private) Map<String,Map<String, BecpgFormDefinition>> (package private) org.alfresco.repo.forms.FormServiceprivate static org.apache.commons.logging.Logprivate org.alfresco.service.namespace.NamespaceServiceprivate org.alfresco.service.cmr.repository.NodeServiceprivate static final Stringprivate ShareFormParserprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetForm(String itemKind, String itemId, String formId, String siteId, List<String> fields, List<String> forcedFields, org.alfresco.service.cmr.repository.NodeRef entityNodeRef) getForm.private BecpgFormDefinitiongetFormDefinition(Map<String, Map<String, BecpgFormDefinition>> defs, org.alfresco.repo.forms.Item item, String formId, String siteId) org.alfresco.repo.forms.FormServiceGetter for the fieldformService.org.alfresco.service.namespace.NamespaceServiceGetter for the fieldnamespaceService.org.alfresco.service.cmr.repository.NodeServiceGetter for the fieldnodeService.Getter for the fieldshareFormParser.private charguessSeparator(String sourceString) private Map<String,Map<String, BecpgFormDefinition>> parseDefinitions(String customFormDefinition) processWildcard(String sourceString) processWildcards(List<String> configs) voidregisterDecorator(ColumnDecorator columnDecorator) registerDecorator.voidreloadConfig.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetConfigs(List<String> configs) Setter for the fieldconfigs.voidsetDecorators(List<ColumnDecorator> decorators) Setter for the fielddecorators.voidsetFormService(org.alfresco.repo.forms.FormService formService) Setter for the fieldformService.voidsetNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) Setter for the fieldnamespaceService.voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) Setter for the fieldnodeService.voidsetShareFormParser(ShareFormParser shareFormParser) Setter for the fieldshareFormParser.
-
Field Details
-
applicationContext
org.springframework.context.ApplicationContext applicationContext -
resourceBundles
-
configs
-
decorators
List<ColumnDecorator> decorators -
formService
org.alfresco.repo.forms.FormService formService -
nodeService
private org.alfresco.service.cmr.repository.NodeService nodeService -
namespaceService
private org.alfresco.service.namespace.NamespaceService namespaceService -
logger
private static org.apache.commons.logging.Log logger -
definitions
Map<String,Map<String, definitionsBecpgFormDefinition>> -
PREFIX_FILE
- See Also:
-
WILDCARD
- See Also:
-
-
Constructor Details
-
BecpgFormServiceImpl
public BecpgFormServiceImpl()
-
-
Method Details
-
getFormService
public org.alfresco.repo.forms.FormService getFormService()Getter for the field
formService.- Returns:
- a
FormServiceobject.
-
setDecorators
Setter for the field
decorators.- Parameters:
decorators- aListobject.
-
setFormService
public void setFormService(org.alfresco.repo.forms.FormService formService) Setter for the field
formService.- Parameters:
formService- aFormServiceobject.
-
getNodeService
public org.alfresco.service.cmr.repository.NodeService getNodeService()Getter for the field
nodeService.- Returns:
- a
NodeServiceobject.
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) Setter for the field
nodeService.- Parameters:
nodeService- aNodeServiceobject.
-
getNamespaceService
public org.alfresco.service.namespace.NamespaceService getNamespaceService()Getter for the field
namespaceService.- Returns:
- a
NamespaceServiceobject.
-
setNamespaceService
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) Setter for the field
namespaceService.- Parameters:
namespaceService- aNamespaceServiceobject.
-
setConfigs
Setter for the field
configs.- Parameters:
configs- aListobject.
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
registerDecorator
registerDecorator.
- Specified by:
registerDecoratorin interfaceBecpgFormService- Parameters:
columnDecorator- aColumnDecoratorobject
-
reloadConfig
reloadConfig.
- Specified by:
reloadConfigin interfaceBecpgFormService- Throws:
IOException- if any.
-
getForm
public BecpgFormDefinition getForm(String itemKind, String itemId, String formId, String siteId, List<String> fields, List<String> forcedFields, org.alfresco.service.cmr.repository.NodeRef entityNodeRef) throws BeCPGException, org.json.JSONException getForm.
- Specified by:
getFormin interfaceBecpgFormService- Parameters:
itemKind- aStringobjectitemId- aStringobjectformId- aStringobjectsiteId- aStringobjectfields- aListobjectforcedFields- aListobjectentityNodeRef- aNodeRefobject- Returns:
- a
BecpgFormDefinitionobject - Throws:
BeCPGException- if any.org.json.JSONException- if any.
-
parseDefinitions
private Map<String,Map<String, parseDefinitionsBecpgFormDefinition>> (String customFormDefinition) throws org.json.JSONException - Throws:
org.json.JSONException
-
getFormDefinition
private BecpgFormDefinition getFormDefinition(Map<String, Map<String, throws BeCPGExceptionBecpgFormDefinition>> defs, org.alfresco.repo.forms.Item item, String formId, String siteId) - Throws:
BeCPGException
-
processWildcards
-
processWildcard
-
guessSeparator
-