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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyAllToTemplates
(long setId, String attributeName) Forces all the settings of an attribute to all those templates that use itvoid
applyInitializationToTemplates
(long setId, String attribute) Forces the initialization of an attribute to all those templates that use itvoid
applyValidationToTemplates
(long setId, String attribute) Forces the validation of an attribute to all those templates that use itvoid
delete
(long setId) Deletes a given setvoid
deleteOptions
(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 setvoid
saveOptions
(long setId, String attribute, List<GUIValue> values) Saves the list of all possible optionsMethods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
getSerializationPolicy, init, processCall, processCall, processPost
Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
doPost
Methods inherited from class javax.servlet.http.HttpServlet
service
Methods 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:AttributeSetService
Deletes a given set- Specified by:
delete
in interfaceAttributeSetService
- Parameters:
setId
- identifier of the set- Throws:
ServerException
- an error happened in the server application
-
saveOptions
Description copied from interface:AttributeSetService
Saves the list of all possible options- Specified by:
saveOptions
in 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:AttributeSetService
Delete a selection of options- Specified by:
deleteOptions
in 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:AttributeSetService
Creates or updates a set- Specified by:
save
in 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:AttributeSetService
Loads a given set from the database- Specified by:
getAttributeSet
in 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:AttributeSetService
Loads all the sets from the database- Specified by:
getAttributeSets
in interfaceAttributeSetService
- Returns:
- the sets retrieved from the server
- Throws:
ServerException
- an error happened in the server application
-
parseOptions
Description copied from interface:AttributeSetService
Reads the contacts that are about to be imported from CSV- Specified by:
parseOptions
in 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:AttributeSetService
Forces the validation of an attribute to all those templates that use it- Specified by:
applyValidationToTemplates
in 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:AttributeSetService
Forces the initialization of an attribute to all those templates that use it- Specified by:
applyInitializationToTemplates
in 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:AttributeSetService
Forces all the settings of an attribute to all those templates that use it- Specified by:
applyAllToTemplates
in interfaceAttributeSetService
- Parameters:
setId
- identifier of the setattributeName
- name of the attribute- Throws:
ServerException
- an error happened in the server application
-