Package com.logicaldoc.web.service
Class AttributeSetServiceImpl
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
com.google.gwt.user.server.rpc.RemoteServiceServlet
com.logicaldoc.web.service.AbstractRemoteService
com.logicaldoc.web.service.AttributeSetServiceImpl
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService,com.google.gwt.user.server.rpc.SerializationPolicyProvider,AttributeSetService,Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
Implementation of the AttributeSetService
- Since:
- 7.5
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.logicaldoc.gui.frontend.client.services.AttributeSetService
AttributeSetService.Instance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyAllToTemplates(long setId, String attributeName) Forces all the settings of an attribute to all those templates that use itvoidapplyInitializationToTemplates(long setId, String attribute) Forces the initialization of an attribute to all those templates that use itvoidapplyValidationToTemplates(long setId, String attribute) Forces the validation of an attribute to all those templates that use itvoiddelete(long setId) Deletes a given setvoiddeleteOptions(long setId, String attribute, List<String> values) Delete a selection of optionsgetAttributeSet(long setId) Loads a given set from the databasegetAttributeSet(String name) Loads all the sets from the databaseparseOptions(long setId, String attribute) Reads the contacts that are about to be imported from CSVsave(GUIAttributeSet guiAttributeSet) Creates or updates a setvoidsaveOptions(long setId, String attribute, List<GUIValue> values) Saves the list of all possible optionsMethods inherited from class com.logicaldoc.web.service.AbstractRemoteService
setThreadRequestMethods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
getSerializationPolicy, init, processCall, processCall, processPostMethods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
doPostMethods inherited from class javax.servlet.http.HttpServlet
serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
AttributeSetServiceImpl
public AttributeSetServiceImpl()
-
-
Method Details
-
delete
Description copied from interface:AttributeSetServiceDeletes a given set- Specified by:
deletein interfaceAttributeSetService- Parameters:
setId- identifier of the set- Throws:
ServerException- an error happened in the server application
-
saveOptions
Description copied from interface:AttributeSetServiceSaves the list of all possible options- Specified by:
saveOptionsin interfaceAttributeSetService- Parameters:
setId- identifier of the setattribute- name of the attributevalues- possible options- Throws:
ServerException- an error happened in the server application
-
deleteOptions
Description copied from interface:AttributeSetServiceDelete a selection of options- Specified by:
deleteOptionsin interfaceAttributeSetService- Parameters:
setId- identifier of the setattribute- name of the attributevalues- collectiojn of options to delete- Throws:
ServerException- an error happened in the server application
-
save
Description copied from interface:AttributeSetServiceCreates or updates a set- Specified by:
savein interfaceAttributeSetService- Parameters:
guiAttributeSet- the set to save- Returns:
- the saved set
- Throws:
ServerException- an error happened in the server application
-
getAttributeSet
- Throws:
ServerException
-
getAttributeSet
Description copied from interface:AttributeSetServiceLoads a given set from the database- Specified by:
getAttributeSetin interfaceAttributeSetService- Parameters:
setId- identifier of the set- Returns:
- the set retrieved from the server
- Throws:
ServerException- an error happened in the server application
-
getAttributeSets
Description copied from interface:AttributeSetServiceLoads all the sets from the database- Specified by:
getAttributeSetsin interfaceAttributeSetService- Returns:
- the sets retrieved from the server
- Throws:
ServerException- an error happened in the server application
-
parseOptions
Description copied from interface:AttributeSetServiceReads the contacts that are about to be imported from CSV- Specified by:
parseOptionsin interfaceAttributeSetService- Parameters:
setId- identifier of the setattribute- name of the attribute- Returns:
- array of options
- Throws:
ServerException- an error happened in the server application
-
applyValidationToTemplates
Description copied from interface:AttributeSetServiceForces the validation of an attribute to all those templates that use it- Specified by:
applyValidationToTemplatesin interfaceAttributeSetService- Parameters:
setId- identifier of the setattribute- name of the attribute- Throws:
ServerException- an error happened in the server application
-
applyInitializationToTemplates
Description copied from interface:AttributeSetServiceForces the initialization of an attribute to all those templates that use it- Specified by:
applyInitializationToTemplatesin interfaceAttributeSetService- Parameters:
setId- identifier of the setattribute- name of the attribute- Throws:
ServerException- an error happened in the server application
-
applyAllToTemplates
Description copied from interface:AttributeSetServiceForces all the settings of an attribute to all those templates that use it- Specified by:
applyAllToTemplatesin interfaceAttributeSetService- Parameters:
setId- identifier of the setattributeName- name of the attribute- Throws:
ServerException- an error happened in the server application
-