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 voiddelete(long setId)Deletes a given setvoiddeleteOptions(long setId, String attribute, String[] values)Delete a selection of optionsGUIAttributeSetgetAttributeSet(long setId)Loads a given set from the databaseGUIAttributeSetgetAttributeSet(String name)String[]parseOptions(long setId, String attribute)Reads the contacts that are about to be imported from CSVGUIAttributeSetsave(GUIAttributeSet attributeSet)Creates or updates a setvoidsaveOptions(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 ServerExceptionDescription 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
public void saveOptions(long setId, String attribute, String[] values) throws ServerExceptionDescription copied from interface:AttributeSetServiceSaves the list of all possible options- Specified by:
saveOptionsin 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 ServerExceptionDescription copied from interface:AttributeSetServiceDelete a selection of options- Specified by:
deleteOptionsin 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:AttributeSetServiceCreates or updates a set- Specified by:
savein 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: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
-
parseOptions
public String[] parseOptions(long setId, String attribute) throws ServerException
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
-
-