/**
 * Copyright (C) 2009-2016 Simonsoft Nordic AB
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package se.simonsoft.cms.item.events;

import java.util.Map;

import se.simonsoft.cms.item.CmsItemPath;
import se.simonsoft.cms.item.CmsRepository;
import se.simonsoft.cms.item.RepoRevision;
import se.simonsoft.cms.item.events.change.CmsChangesetItem;
import se.simonsoft.cms.item.events.change.CmsChangesetItemFlags;
import se.simonsoft.cms.item.inspection.CmsChangesetReader;

/**
 * Gets notified when a commit is done to the CMS.
 * 
 * Any service might be interested in the event, for caching etc,
 * because between these events nothing changes in the repositories
 * except locks and exceptionally revprops.
 * 
 * Listeners are registered by binding to a set of this interface
 * using the multibinder feature.
 * Hooks are executed in the order they are bound.
 * 
 * Note that this should not be used for changeset access or
 * access to content of the committed files (no {@link CmsChangesetReader} calls).
 * A framework that publishes {@link CmsChangesetItem} must be used to avoid
 * multiple reads of the same content. Such a framework exists in indexing.
 * 
 * @deprecated Services should listen to changeset events using {@link ChangesetEventListener}.
 */
public interface PostCommitEventListener {

	public void onPostCommit(CmsRepository repository, RepoRevision revision);
	
	
	/**
	 * Post commit notification with basic information about changed paths in the repository, as provided by svnpubsub.
	 * 
	 * @param repository
	 * @param revision
	 * @param changed
	 */
	public void onPostCommit(CmsRepository repository, RepoRevision revision, Map<CmsItemPath, CmsChangesetItemFlags> changed);
	
}

@@ -653,73 +653,8 @@
 s;%0A%0A
-import java.util.Map;%0A%0Aimport se.simonsoft.cms.item.CmsItemPath;%0A
 impo
@@ -801,74 +801,8 @@
 em;%0A
-import se.simonsoft.cms.item.events.change.CmsChangesetItemFlags;%0A
 impo
@@ -1781,328 +1781,6 @@
 ;%0A%09%0A
-%09%0A%09/**%0A%09 * Post commit notification with basic information about changed paths in the repository, as provided by svnpubsub.%0A%09 * %0A%09 * @param repository%0A%09 * @param revision%0A%09 * @param changed%0A%09 */%0A%09public void onPostCommit(CmsRepository repository, RepoRevision revision, Map%3CCmsItemPath, CmsChangesetItemFlags%3E changed);%0A%09%0A
 %7D%0A

Remove variant of `onPostCommit` in `PostCommitEventListener` added during 2.7.0-SNAPSHOT, never released.