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.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
public class AttributeSetServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements AttributeSetService
Implementation of the AttributeSetService- Since:
- 7.5
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.logicaldoc.gui.frontend.client.services.AttributeSetService
AttributeSetService.Instance
-
-
Constructor Summary
Constructors Constructor Description AttributeSetServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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, String[] values)
Delete a selection of optionsGUIAttributeSet
getAttributeSet(long setId)
Loads a given set from the databaseGUIAttributeSet
getAttributeSet(String name)
GUIAttributeSet[]
getAttributeSets()
Loads all the sets from the databaseString[]
parseOptions(long setId, String attribute)
Reads the contacts that are about to be imported from CSVGUIAttributeSet
save(GUIAttributeSet attributeSet)
Creates or updates a setvoid
saveOptions(long setId, String attribute, String[] values)
Saves the list of all possible options-
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
getSerializationPolicy, init, processCall, processCall, processPost
-
-
-
-
Method Detail
-
delete
public void delete(long setId) throws ServerException
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
public void saveOptions(long setId, String attribute, String[] values) throws ServerException
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
- array of possible options- Throws:
ServerException
- an error happened in the server application
-
deleteOptions
public void deleteOptions(long setId, String attribute, String[] values) throws ServerException
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
- array of options to delete- Throws:
ServerException
- an error happened in the server application
-
save
public GUIAttributeSet save(GUIAttributeSet attributeSet) throws ServerException
Description copied from interface:AttributeSetService
Creates or updates a set- Specified by:
save
in interfaceAttributeSetService
- Parameters:
attributeSet
- the set to save- Returns:
- the saved set
- Throws:
ServerException
- an error happened in the server application
-
getAttributeSet
public GUIAttributeSet getAttributeSet(String name) throws ServerException
- Throws:
ServerException
-
getAttributeSet
public GUIAttributeSet getAttributeSet(long setId) throws ServerException
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
public GUIAttributeSet[] getAttributeSets() throws ServerException
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
public String[] parseOptions(long setId, String attribute) throws ServerException
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
public void applyValidationToTemplates(long setId, String attribute) throws ServerException
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
-
-