Package com.logicaldoc.web.service
Class DashletServiceImpl
- 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.DashletServiceImpl
-
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService
,com.google.gwt.user.server.rpc.SerializationPolicyProvider
,DashletService
,Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class DashletServiceImpl extends AbstractRemoteService implements DashletService
The dashlet service for the operations on the dashlets done through the GUI.- Since:
- 8.2.3
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.logicaldoc.gui.frontend.client.services.DashletService
DashletService.Instance
-
-
Constructor Summary
Constructors Constructor Description DashletServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(long dashletId)
GUIDashlet
get(long dashletId)
Gets a dashletGUIDashlet
get(String name)
Gets a dashletGUIDashlet[]
loadDashlets()
Loads all the dashlet definitionsvoid
save(GUIDashlet guiDashlet)
Saves a dashletvoid
saveDashlets(GUIDashlet[] dashlets)
Saves the dashlet definitionsvoid
saveUserDashlets(GUIDashlet[] dashlets)
Saves the user's dashlet configuration-
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
getSerializationPolicy, init, processCall, processCall, processPost
-
-
-
-
Method Detail
-
save
public void save(GUIDashlet guiDashlet) throws ServerException
Description copied from interface:DashletService
Saves a dashlet- Specified by:
save
in interfaceDashletService
- Parameters:
guiDashlet
- the dashlet to save- Throws:
ServerException
- an error happened in the server application
-
saveDashlets
public void saveDashlets(GUIDashlet[] dashlets) throws ServerException
Description copied from interface:DashletService
Saves the dashlet definitions- Specified by:
saveDashlets
in interfaceDashletService
- Parameters:
dashlets
- the dashlets to save- Throws:
ServerException
- an error happened in the server application
-
loadDashlets
public GUIDashlet[] loadDashlets() throws ServerException
Description copied from interface:DashletService
Loads all the dashlet definitions- Specified by:
loadDashlets
in interfaceDashletService
- Returns:
- all the dashlets
- Throws:
ServerException
- an error happened in the server application
-
get
public GUIDashlet get(long dashletId) throws ServerException
Description copied from interface:DashletService
Gets a dashlet- Specified by:
get
in interfaceDashletService
- Parameters:
dashletId
- identifier of the dashlet- Returns:
- the dashlet retrieved by the server application
- Throws:
ServerException
- an error happened in the server application
-
get
public GUIDashlet get(String name) throws ServerException
Description copied from interface:DashletService
Gets a dashlet- Specified by:
get
in interfaceDashletService
- Parameters:
name
- the name of the dashlet- Returns:
- the dashlet retrieved by the server application
- Throws:
ServerException
- an error happened in the server application
-
delete
public void delete(long dashletId) throws ServerException
- Specified by:
delete
in interfaceDashletService
- Throws:
ServerException
-
saveUserDashlets
public void saveUserDashlets(GUIDashlet[] dashlets) throws ServerException
Description copied from interface:DashletService
Saves the user's dashlet configuration- Specified by:
saveUserDashlets
in interfaceDashletService
- Parameters:
dashlets
- the dashlets to save- Throws:
ServerException
- an error happened in the server application
-
-