[Comsuite-svn] SF.net SVN: comsuite: [199] trunk/code
Brought to you by:
zduniak
|
From: <sku...@us...> - 2006-10-05 09:08:51
|
Revision: 199
http://svn.sourceforge.net/comsuite/?rev=199&view=rev
Author: skuzniak
Date: 2006-10-05 02:08:34 -0700 (Thu, 05 Oct 2006)
Log Message:
-----------
set redirection in pages
Modified Paths:
--------------
trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/LanguageSelectionBean.java
trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/messages/SearchMessageBean.java
trunk/code/CSAdminPanel/WebContent/WEB-INF/faces-config.xml
trunk/code/CSMiddleware/src/org/commsuite/ws/CommunicateWS.java
Modified: trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/LanguageSelectionBean.java
===================================================================
--- trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/LanguageSelectionBean.java 2006-10-05 08:04:29 UTC (rev 198)
+++ trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/LanguageSelectionBean.java 2006-10-05 09:08:34 UTC (rev 199)
@@ -187,11 +187,6 @@
final String message = LanguageSelectionBean.getDisplayString(
LOCALE_CLASSNAME, messageCode, null,
FacesContext.getCurrentInstance().getViewRoot().getLocale());
- logger.debug("****************************************************************");
- logger.debug("message: "+ message);
- logger.debug("exception: "+ exception);
- logger.debug("parent component: "+ parentComponent);
- logger.debug("****************************************************************");
FacesContext.getCurrentInstance().addMessage(parentComponent,
new FacesMessage(message+ "caused by: "+ exception));
}
Modified: trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/messages/SearchMessageBean.java
===================================================================
--- trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/messages/SearchMessageBean.java 2006-10-05 08:04:29 UTC (rev 198)
+++ trunk/code/CSAdminPanel/JavaSource/org/commsuite/web/beans/messages/SearchMessageBean.java 2006-10-05 09:08:34 UTC (rev 199)
@@ -20,13 +20,9 @@
*/
package org.commsuite.web.beans.messages;
-import java.io.IOException;
import java.util.List;
-import javax.faces.context.FacesContext;
import javax.faces.model.SelectItem;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
import javolution.util.FastTable;
Modified: trunk/code/CSAdminPanel/WebContent/WEB-INF/faces-config.xml
===================================================================
--- trunk/code/CSAdminPanel/WebContent/WEB-INF/faces-config.xml 2006-10-05 08:04:29 UTC (rev 198)
+++ trunk/code/CSAdminPanel/WebContent/WEB-INF/faces-config.xml 2006-10-05 09:08:34 UTC (rev 199)
@@ -528,86 +528,107 @@
<navigation-case>
<from-outcome>addAction</from-outcome>
<to-view-id>/pages/actions/CSActionAdd.jsp</to-view-id>
+ <redirect/>
</navigation-case>
<navigation-case>
<from-outcome>searchAction</from-outcome>
<to-view-id>/pages/actions/CSActionSearch.jsp</to-view-id>
+ <redirect/>
</navigation-case>
<navigation-case>
<from-outcome>editAction</from-outcome>
<to-view-id>/pages/actions/CSActionsEdit.jsp</to-view-id>
+ <redirect/>
</navigation-case>
<navigation-case>
<from-outcome>addGroup</from-outcome>
<to-view-id>/pages/groups/CSGroupAdd.jsp</to-view-id>
+ <redirect/>
</navigation-case>
<navigation-case>
<from-outcome>searchGroup</from-outcome>
<to-view-id>/pages/groups/CSGroupSearch.jsp</to-view-id>
+ <redirect/>
</navigation-case>
<navigation-case>
<from-outcome>editGroup</from-outcome>
<to-view-id>/pages/groups/CSGroupEdit.jsp</to-view-id>
+ <redirect/>
</navigation-case>
<navigation-case>
<from-outcome>addRole</from-outcome>
<to-view-id>/pages/roles/CSRoleCreate.jsp</to-view-id>
+ <redirect/>
</navigation-case>
<navigation-case>
<from-outcome>searchRole</from-outcome>
<to-view-id>/pages/roles/CSRoleSearch.jsp</to-view-id>
+ <redirect/>
</navigation-case>
<navigation-case>
<from-outcome>editRole</from-outcome>
<to-view-id>/pages/roles/CSRoleEdit.jsp</to-view-id>
+ <redirect/>
</navigation-case>
<navigation-case>
<from-outcome>addServer</from-outcome>
<to-view-id>/pages/servers/CSServerAdd.jsp</to-view-id>
+ <redirect/>
</navigation-case>
<navigation-case>
<from-outcome>showServers</from-outcome>
<to-view-id>/pages/servers/CSSAPServers.jsp</to-view-id>
+ <redirect/>
</navigation-case>
<navigation-case>
<from-outcome>addUser</from-outcome>
<to-view-id>/pages/users/CSUserAdd.jsp</to-view-id>
+ <redirect/>
</navigation-case>
<navigation-case>
<from-outcome>searchUser</from-outcome>
<to-view-id>/pages/users/CSUserSearch.jsp</to-view-id>
+ <redirect/>
</navigation-case>
<navigation-case>
<from-outcome>showUsers</from-outcome>
<to-view-id>/pages/users/CSUsersSearchResult.jsp</to-view-id>
+ <redirect/>
</navigation-case>
<navigation-case>
<from-outcome>showMessages</from-outcome>
<to-view-id>/pages/messages/CSMessages.jsp</to-view-id>
+ <redirect/>
</navigation-case>
<navigation-case>
<from-outcome>home</from-outcome>
<to-view-id>/pages/CSMainPanel.jsp</to-view-id>
+ <redirect/>
</navigation-case>
<navigation-case>
<from-outcome>servlet</from-outcome>
<to-view-id>/pages/CSContentsServlet.jsp</to-view-id>
+ <redirect/>
</navigation-case>
<navigation-case>
<from-outcome>usersToGroup</from-outcome>
<to-view-id>/pages/common/CSUsersToGroup.jsp</to-view-id>
+ <redirect/>
</navigation-case>
<navigation-case>
<from-outcome>usersToRole</from-outcome>
<to-view-id>/pages/common/CSUsersToRole.jsp</to-view-id>
+ <redirect/>
</navigation-case>
<navigation-case>
<from-outcome>actionsToRoles</from-outcome>
<to-view-id>/pages/common/CSActionsToRole.jsp</to-view-id>
+ <redirect/>
</navigation-case>
<navigation-case>
<from-outcome>rolesToGroup</from-outcome>
<to-view-id>/pages/common/CSRolesToGroup.jsp</to-view-id>
+ <redirect/>
</navigation-case>
<navigation-case>
<from-outcome>loggedOut</from-outcome>
@@ -617,22 +638,27 @@
<navigation-case>
<from-outcome>searchMessages</from-outcome>
<to-view-id>/pages/messages/CSMessagesSearch.jsp</to-view-id>
+ <redirect/>
</navigation-case>
<navigation-case>
<from-outcome>editUser</from-outcome>
<to-view-id>/pages/users/CSUserEdit.jsp</to-view-id>
+ <redirect/>
</navigation-case>
<navigation-case>
<from-outcome>searchServers</from-outcome>
<to-view-id>/pages/servers/CSServerSearch.jsp</to-view-id>
+ <redirect/>
</navigation-case>
<navigation-case>
<from-outcome>editServer</from-outcome>
<to-view-id>/pages/servers/CSServerEdit.jsp</to-view-id>
+ <redirect/>
</navigation-case>
<navigation-case>
<from-outcome>messageDetails</from-outcome>
<to-view-id>/pages/messages/CSMessagesDetails.jsp</to-view-id>
+ <redirect/>
</navigation-case>
</navigation-rule>
<navigation-rule>
@@ -640,6 +666,7 @@
<navigation-case>
<from-outcome>loginPage</from-outcome>
<to-view-id>/index.jsp</to-view-id>
+ <redirect/>
</navigation-case>
</navigation-rule>
<validator>
Modified: trunk/code/CSMiddleware/src/org/commsuite/ws/CommunicateWS.java
===================================================================
--- trunk/code/CSMiddleware/src/org/commsuite/ws/CommunicateWS.java 2006-10-05 08:04:29 UTC (rev 198)
+++ trunk/code/CSMiddleware/src/org/commsuite/ws/CommunicateWS.java 2006-10-05 09:08:34 UTC (rev 199)
@@ -59,16 +59,17 @@
private static final Logger logger = Logger.getLogger(CommunicateWS.class);
- // private static final String ROLE_OPTION = "roles";
-
- // private static final String USERS_OPTION = "users";
-
/**
* Default constructor.
*/
public CommunicateWS() {
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getMessagesSubset();
+ */
public Collection<WSMessage> getMessagesSubset(int begin, int end) throws WebServiceException {
try {
final MessagesService service = MessagesService.getMessagesService();
@@ -79,6 +80,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getMessagesByServer();
+ */
public Collection<WSMessage> getMessagesByServer(String serverId) throws WebServiceException {
try {
final MessagesService service = MessagesService.getMessagesService();
@@ -88,7 +94,12 @@
throw new WebServiceException(t);
}
}
-
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#deleteMessage();
+ */
public void deleteMessage(String id) throws WebServiceException {
try {
final MessagesService service = MessagesService.getMessagesService();
@@ -97,7 +108,12 @@
throw new WebServiceException("Exception during deleting message with id: "+ id);
}
}
-
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getMessagesSize();
+ */
public int getMessagesSize(SearchMessageModel wsMessage) throws WebServiceException {
try {
MessagesService service = MessagesService.getMessagesService();
@@ -108,6 +124,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getAllMessages();
+ */
public Collection<WSMessage> getAllMessages() throws WebServiceException {
try {
MessagesService service = MessagesService.getMessagesService();
@@ -118,6 +139,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getSelectedMessages();
+ */
public Collection<WSMessage> getSelectedMessages(SearchMessageModel wsMessage)
throws WebServiceException {
try {
@@ -129,6 +155,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getSelectedMessagesSubset();
+ */
public Collection<WSMessage> getSelectedMessagesSubset(SearchMessageModel wsMessage, int begin, int end)
throws WebServiceException {
try {
@@ -140,6 +171,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getContentsById();
+ */
public WSContents getContentsById(String id) throws WebServiceException {
try {
MessagesService service = MessagesService.getMessagesService();
@@ -150,6 +186,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getSentContentsByMessage();
+ */
public Collection<WSSentContent> getSentContentsByMessage(String id) throws WebServiceException {
try {
MessagesService service = MessagesService.getMessagesService();
@@ -160,6 +201,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getContentsBySentContent();
+ */
public Collection<WSContents> getContentsBySentContent(String id) throws WebServiceException {
try {
MessagesService service = MessagesService.getMessagesService();
@@ -170,6 +216,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getMessageById();
+ */
public WSMessage getMessageById(String id) throws WebServiceException {
try {
MessagesService service = MessagesService.getMessagesService();
@@ -179,7 +230,12 @@
throw new WebServiceException(t);
}
}
-
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getInstancesSize();
+ */
public int getInstancesSize(WSSAPInstanceDef def, boolean defaultSearch, boolean loadSearch, boolean unicodeSearch, boolean activeSearch)
throws WebServiceException {
try {
@@ -191,6 +247,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getInstancesSubset();
+ */
public Collection<WSSAPInstanceDef> getInstancesSubset(int begin, int end) throws WebServiceException {
try {
ServersService service = ServersService.getInstance();
@@ -202,6 +263,11 @@
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getAllInstances();
+ */
public Collection<WSSAPInstanceDef> getAllInstances() throws WebServiceException {
try {
ServersService service = ServersService.getInstance();
@@ -213,6 +279,11 @@
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getInstanceById();
+ */
public WSSAPInstanceDef getInstanceById(String id) throws WebServiceException {
try {
ServersService service = ServersService.getInstance();
@@ -224,6 +295,11 @@
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getSelectedInstancesSubset();
+ */
public Collection<WSSAPInstanceDef> getSelectedInstancesSubset(WSSAPInstanceDef def,
boolean defaultSearch, boolean loadSearch, boolean unicodeSearch, boolean activeSearch, int begin, int end)
throws WebServiceException {
@@ -236,6 +312,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getSelectedInstances();
+ */
public Collection<WSSAPInstanceDef> getSelectedInstances(WSSAPInstanceDef def,
boolean defaultSearch, boolean loadSearch, boolean unicodeSearch, boolean activeSearch)
throws WebServiceException {
@@ -248,6 +329,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#saveNewInstance();
+ */
public WSSAPInstanceDef saveNewInstance(WSSAPInstanceDef instance) throws WebServiceException {
try {
@@ -259,6 +345,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#deleteServer();
+ */
public void deleteServer(String id) throws WebServiceException {
try {
ServersService service = ServersService.getInstance();
@@ -268,7 +359,12 @@
throw new WebServiceException("error in deleteServer method", t);
}
}
-
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getUsersSize();
+ */
public int getUsersSize(WSUser user, boolean enabledSearch) throws WebServiceException {
try {
UsersService service = UsersService.getInstance();
@@ -279,6 +375,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getAllUsers();
+ */
public Collection<WSUser> getAllUsers() throws WebServiceException {
try {
UsersService service = UsersService.getInstance();
@@ -289,6 +390,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getUsersSubset();
+ */
public Collection<WSUser> getUsersSubset(int begin, int end) throws WebServiceException {
try {
UsersService service = UsersService.getInstance();
@@ -299,6 +405,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getSelectedUsersSubset();
+ */
public Collection<WSUser> getSelectedUsersSubset(WSUser user, boolean enabledSearch, int begin, int end) throws WebServiceException {
try {
UsersService service = UsersService.getInstance();
@@ -312,6 +423,11 @@
// TODO: [SK] czy ta metoda sluzy tylko do dodawania nowych userow? czy takze
// do zapisywania zmian przy edycji juz istniejacych userow ? nazwa tej metody jest odpowiednia
// ?
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#addUserToDatabase();
+ */
public WSUser addUserToDatabase(WSUser user) throws WebServiceException {
try {
UsersService service = UsersService.getInstance();
@@ -322,6 +438,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#deleteUserFromDatabase();
+ */
public void deleteUserFromDatabase(String id) throws WebServiceException {
try {
UsersService service = UsersService.getInstance();
@@ -335,6 +456,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getActionsAvailable();
+ */
public Collection<WSAction> getActionsAvailable() throws WebServiceException {
try {
ActionsService service = ActionsService.getInstance();
@@ -345,6 +471,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getActionsByRole();
+ */
public Collection<WSAction> getActionsByRole(String id) throws WebServiceException {
try {
ActionsService service = ActionsService.getInstance();
@@ -357,6 +488,11 @@
// TODO: [SK] czy ta metoda sluzy tylko do dodawania nowych akcji? czy takze
// do zapisywania zmian przy edycji juz istniejacych akcji ? nazwa tej metody jest odpowiednia ?
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#addActionToDatabase();
+ */
public WSAction addActionToDatabase(WSAction action) throws WebServiceException {
try {
ActionsService service = ActionsService.getInstance();
@@ -370,7 +506,11 @@
}
}
- // TODO: [SK] czy ta metoda nie powinna zwracac obiektu typu WSAction ?
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getActionById();
+ */
public Action getActionById(String id) throws WebServiceException {
try {
ActionsService service = ActionsService.getInstance();
@@ -381,6 +521,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getWSActionById();
+ */
public WSAction getWSActionById(String id) throws WebServiceException {
try {
ActionsService service = ActionsService.getInstance();
@@ -391,6 +536,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#deleteActionFromDatabase();
+ */
public void deleteActionFromDatabase(String id) throws WebServiceException {
try {
ActionsService service = ActionsService.getInstance();
@@ -404,6 +554,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getActionsByName();
+ */
public Collection<WSAction> getActionsByName(String name) throws WebServiceException {
try {
ActionsService service = ActionsService.getInstance();
@@ -414,6 +569,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#updateRole();
+ */
public WSRole updateRole(WSRole wsRole) throws WebServiceException {
try {
RolesService service = RolesService.getInstnce();
@@ -427,6 +587,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#updateActionsForRole();
+ */
public WSRole updateActionsForRole(WSRole wsRole, String[] ids) throws WebServiceException {
try {
RolesService service = RolesService.getInstnce();
@@ -440,6 +605,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#updateUsersForRole();
+ */
public WSRole updateUsersForRole(WSRole wsRole, String[] idsToAdd, String[] idsToDelete)
throws WebServiceException {
try {
@@ -454,6 +624,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#deleteRoleFromDatabase();
+ */
public void deleteRoleFromDatabase(String id) throws WebServiceException {
try {
RolesService service = RolesService.getInstnce();
@@ -467,6 +642,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getAllRoles();
+ */
public Collection<WSRole> getAllRoles() throws WebServiceException {
try {
RolesService service = RolesService.getInstnce();
@@ -477,6 +657,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#serverTest();
+ */
public String serverTest(String serverName) throws WebServiceException {
try {
ServersService service = ServersService.getInstance();
@@ -487,6 +672,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getAllGroups();
+ */
public Collection<WSGroup> getAllGroups() throws WebServiceException {
try {
GroupsService service = GroupsService.getInstance();
@@ -497,6 +687,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#updateGroup();
+ */
public WSGroup updateGroup(WSGroup wsGroup) throws WebServiceException {
try {
GroupsService service = GroupsService.getInstance();
@@ -510,6 +705,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#updateRolesForGroup();
+ */
public WSGroup updateRolesForGroup(WSGroup wsGroup, String[] ids) throws WebServiceException {
try {
GroupsService service = GroupsService.getInstance();
@@ -523,6 +723,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#updateUsersForGroup();
+ */
public WSGroup updateUsersForGroup(WSGroup wsGroup, String[] idsToAdd, String[] idsToDelete)
throws WebServiceException {
try {
@@ -537,6 +742,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#deleteGroupFromDatabase();
+ */
public void deleteGroupFromDatabase(String id) throws WebServiceException {
try {
GroupsService service = GroupsService.getInstance();
@@ -550,6 +760,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getUserById();
+ */
public WSUser getUserById(String id) throws WebServiceException {
try {
UsersService service = UsersService.getInstance();
@@ -560,6 +775,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getUserByName();
+ */
public WSUser getUserByName(String name) throws WebServiceException {
try {
UsersService service = UsersService.getInstance();
@@ -570,6 +790,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getRoleById();
+ */
public WSRole getRoleById(String id) throws WebServiceException {
try {
RolesService service = RolesService.getInstnce();
@@ -580,6 +805,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getGroupById();
+ */
public WSGroup getGroupById(String id) throws WebServiceException {
try {
GroupsService service = GroupsService.getInstance();
@@ -590,6 +820,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getRolesByName();
+ */
public Collection<WSRole> getRolesByName(String name) throws WebServiceException {
try {
RolesService service = RolesService.getInstnce();
@@ -600,6 +835,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getGroupsByName();
+ */
public Collection<WSGroup> getGroupsByName(String name) throws WebServiceException {
try {
GroupsService service = GroupsService.getInstance();
@@ -610,6 +850,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getUsersByFields();
+ */
public Collection<WSUser> getUsersByFields(WSUser user, boolean enabledSearch) throws WebServiceException {
try {
UsersService service = UsersService.getInstance();
@@ -620,6 +865,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getUsersForGroup();
+ */
public Collection<WSUser> getUsersForGroup(String id) throws WebServiceException {
try {
UsersService service = UsersService.getInstance();
@@ -630,6 +880,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getRolesForGroup();
+ */
public Collection<WSRole> getRolesForGroup(String id) throws WebServiceException {
try {
RolesService service = RolesService.getInstnce();
@@ -640,6 +895,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getUsersByRole();
+ */
public Collection<WSUser> getUsersByRole(String id) throws WebServiceException {
try {
UsersService service = UsersService.getInstance();
@@ -650,6 +910,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getRolesByUser();
+ */
public Collection<WSRole> getRolesByUser(String id) throws WebServiceException {
try {
RolesService service = RolesService.getInstnce();
@@ -660,6 +925,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getGroupsByUser();
+ */
public Collection<WSGroup> getGroupsByUser(String id) throws WebServiceException {
try {
GroupsService service = GroupsService.getInstance();
@@ -670,6 +940,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#getRoleByActionId();
+ */
public Collection<WSRole> getRoleByActionId(String id) throws WebServiceException {
try {
RolesService service = RolesService.getInstnce();
@@ -680,6 +955,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#resubmitMessageWithId();
+ */
public void resubmitMessageWithId(String messageId) throws WebServiceException {
try {
MessagesService service = MessagesService.getMessagesService();
@@ -690,6 +970,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#isSapServerWorking();
+ */
public boolean isSapServerWorking(String serverName) throws WebServiceException {
try {
ServersService service = ServersService.getInstance();
@@ -700,6 +985,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#startSapServer();
+ */
public void startSapServer(String serverName) throws WebServiceException {
try {
ServersService service = ServersService.getInstance();
@@ -710,6 +1000,11 @@
}
}
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#stopSapServer();
+ */
public void stopSapServer(String serverName) throws WebServiceException {
try {
ServersService service = ServersService.getInstance();
@@ -719,7 +1014,12 @@
throw new WebServiceException(t);
}
}
-
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.commsuite.ws.IcommunicateWS#deactivateServer();
+ */
public void deactivateServer(String id, boolean mode) throws WebServiceException {
try {
ServersService service = ServersService.getInstance();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|