"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/main/java/com/openkm/module/NotificationModule.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).

NotificationModule.java  (OpenKM-document-management-system-6.3.10):NotificationModule.java  (OpenKM-document-management-system-6.3.11)
skipping to change at line 24 skipping to change at line 24
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* <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.module; package com.openkm.module;
import com.openkm.core.AccessDeniedException; import com.openkm.core.*;
import com.openkm.core.DatabaseException;
import com.openkm.core.PathNotFoundException;
import com.openkm.core.RepositoryException;
import com.openkm.principal.PrincipalAdapterException; import com.openkm.principal.PrincipalAdapterException;
import java.io.IOException; import java.io.IOException;
import java.util.List; import java.util.List;
import java.util.Set; import java.util.Set;
public interface NotificationModule { public interface NotificationModule {
/** /**
* Add user subscription to a node. * Add user subscription to a node.
* *
* @param nodePath The complete path to the node. * @param nodePath The complete path to the node.
* @throws PathNotFoundException If the node defined by nodePath do not e xists. * @throws PathNotFoundException If the node defined by nodePath do not e xists.
* @throws AccessDeniedException If the token authorization information i s not valid. * @throws AccessDeniedException If the token authorization information i s not valid.
* @throws RepositoryException If there is any error accessing to the rep ository. * @throws RepositoryException If there is any error accessing to the rep ository.
*/ */
public void subscribe(String token, String nodePath) throws PathNotFoundE void subscribe(String token, String nodePath) throws PathNotFoundExceptio
xception, AccessDeniedException, n, AccessDeniedException, RepositoryException,
RepositoryException, DatabaseException; DatabaseException;
/** /**
* Remove an user subscription from a node. * Remove an user subscription from a node.
* *
* @param nodePath The complete path to the node. * @param nodePath The complete path to the node.
* @throws PathNotFoundException If the node defined by nodePath do not e xists. * @throws PathNotFoundException If the node defined by nodePath do not e xists.
* @throws AccessDeniedException If the token authorization information i s not valid. * @throws AccessDeniedException If the token authorization information i s not valid.
* @throws RepositoryException If there is any error accessing to the rep ository. * @throws RepositoryException If there is any error accessing to the rep ository.
*/ */
public void unsubscribe(String token, String nodePath) throws PathNotFoun void unsubscribe(String token, String nodePath) throws PathNotFoundExcept
dException, AccessDeniedException, ion, AccessDeniedException, RepositoryException,
RepositoryException, DatabaseException; DatabaseException;
/** /**
* Get user subscriptions from am item (document or folder). * Get user subscriptions from am item (document or folder).
* *
* @param nodePath The complete path to the node. * @param nodePath The complete path to the node.
* @return A Collection of subscribed users. * @return A Collection of subscribed users.
* @throws PathNotFoundException If the node defined by nodePath do not e xists. * @throws PathNotFoundException If the node defined by nodePath do not e xists.
* @throws AccessDeniedException If the token authorization information i s not valid. * @throws AccessDeniedException If the token authorization information i s not valid.
* @throws RepositoryException If there is any error accessing to the rep ository. * @throws RepositoryException If there is any error accessing to the rep ository.
*/ */
public Set<String> getSubscriptors(String token, String nodePath) throws PathNotFoundException, AccessDeniedException, Set<String> getSubscriptors(String token, String nodePath) throws PathNot FoundException, AccessDeniedException,
RepositoryException, DatabaseException; RepositoryException, DatabaseException;
/** /**
* Send a notification message to an user list. * Send a notification message to an user list.
* *
* @param nodeId The complete path to the node or its UUID. * @param nodeId The complete path to the node or its UUID.
* @param users Array of users to notify. * @param users Array of users to notify.
* @param mails Array of external mails to notify. * @param mails Array of external mails to notify.
* @param message An String with the notification message. * @param message An String with the notification message.
* @throws PathNotFoundException If the node defined by nodePath do not e xists. * @throws PathNotFoundException If the node defined by nodePath do not e xists.
* @throws AccessDeniedException If the token authorization information i s not valid. * @throws AccessDeniedException If the token authorization information i s not valid.
* @throws RepositoryException If there is any error accessing to the rep ository. * @throws RepositoryException If there is any error accessing to the rep ository.
*/ */
public void notify(String token, String nodeId, List<String> users, List< String> mails, String message, boolean attachment) void notify(String token, String nodeId, List<String> users, List<String> mails, String message, boolean attachment)
throws PathNotFoundException, AccessDeniedException, Prin cipalAdapterException, RepositoryException, throws PathNotFoundException, AccessDeniedException, Prin cipalAdapterException, RepositoryException,
DatabaseException, IOException; DatabaseException, IOException, LockException;
/** /**
* Send a proposedSubscription comment to an user list. * Send a proposedSubscription comment to an user list.
* *
* @param nodeId The complete path to the node or its UUID. * @param nodeId The complete path to the node or its UUID.
* @param users Array of users to proposedSubscription. * @param users Array of users to proposedSubscription.
* @param comment An String with the notification message. * * @param comment An String with the notification message.
* @throws PathNotFoundException
* @throws AccessDeniedException
* @throws PrincipalAdapterException
* @throws RepositoryException
* @throws DatabaseException
* @throws IOException
*/ */
public void proposedSubscription(String token, String nodeId, List<String void proposedSubscription(String token, String nodeId, List<String> users
> users, String comment) , String comment) throws PathNotFoundException,
throws PathNotFoundException, AccessDeniedException, Prin AccessDeniedException, PrincipalAdapterException, Reposit
cipalAdapterException, RepositoryException, oryException, DatabaseException, IOException;
DatabaseException, IOException;
} }
 End of changes. 8 change blocks. 
25 lines changed or deleted 15 lines changed or added

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