"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/main/java/com/openkm/ws/endpoint/NotificationService.java" between
OpenKM-document-management-system-6.3.10.tar.gz and OpenKM-document-management-system-6.3.11.tar.gz

About: OpenKM (Knowledge Management) is a document management system that allows easy management of documents, users, roles and finding your enterprise documents and records. Community version (source code).

NotificationService.java  (OpenKM-document-management-system-6.3.10):NotificationService.java  (OpenKM-document-management-system-6.3.11)
skipping to change at line 26 skipping to change at line 26
* <p> * <p>
* You should have received a copy of the GNU General Public License along * You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc., * with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
package com.openkm.ws.endpoint; package com.openkm.ws.endpoint;
import com.openkm.core.AccessDeniedException; import com.openkm.core.AccessDeniedException;
import com.openkm.core.DatabaseException; import com.openkm.core.DatabaseException;
import com.openkm.core.LockException;
import com.openkm.core.PathNotFoundException; import com.openkm.core.PathNotFoundException;
import com.openkm.core.RepositoryException; import com.openkm.core.RepositoryException;
import com.openkm.module.ModuleManager; import com.openkm.module.ModuleManager;
import com.openkm.module.NotificationModule; import com.openkm.module.NotificationModule;
import com.openkm.principal.PrincipalAdapterException; import com.openkm.principal.PrincipalAdapterException;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import javax.jws.WebMethod; import javax.jws.WebMethod;
import javax.jws.WebParam; import javax.jws.WebParam;
skipping to change at line 79 skipping to change at line 80
String[] result = (String[]) col.toArray(new String[col.size()]); String[] result = (String[]) col.toArray(new String[col.size()]);
log.debug("getSubscriptors: {}", result); log.debug("getSubscriptors: {}", result);
return result; return result;
} }
@WebMethod @WebMethod
public void notify(@WebParam(name = "token") String token, @WebParam(name = "nodePath") String nodePath, public void notify(@WebParam(name = "token") String token, @WebParam(name = "nodePath") String nodePath,
@WebParam(name = "users") String[] users, @WebParam(na me = "mails") String[] mails, @WebParam(name = "users") String[] users, @WebParam(na me = "mails") String[] mails,
@WebParam(name = "message") String message, @WebParam( name = "attachment") boolean attachment) throws @WebParam(name = "message") String message, @WebParam( name = "attachment") boolean attachment) throws
PathNotFoundException, AccessDeniedException, PrincipalAd apterException, RepositoryException, PathNotFoundException, AccessDeniedException, PrincipalAd apterException, RepositoryException,
DatabaseException, IOException { DatabaseException, IOException, LockException {
log.debug("notify({}, {}, {}, {}, {})", token, nodePath, users, m essage, attachment); log.debug("notify({}, {}, {}, {}, {})", token, nodePath, users, m essage, attachment);
NotificationModule nm = ModuleManager.getNotificationModule(); NotificationModule nm = ModuleManager.getNotificationModule();
nm.notify(token, nodePath, Arrays.asList(users), Arrays.asList(ma ils), message, attachment); nm.notify(token, nodePath, Arrays.asList(users), Arrays.asList(ma ils), message, attachment);
log.debug("notify: void"); log.debug("notify: void");
} }
} }
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)