- Added onContentRead policy to help support planned samples

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2284 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2006-02-02 12:23:43 +00:00
parent 5d8d0e136c
commit a38de2aa2d
3 changed files with 58 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ public interface ContentServicePolicies
{
/** The QName's of the policies */
public static final QName ON_CONTENT_UPDATE = QName.createQName(NamespaceService.ALFRESCO_URI, "onContentUpdate");
public static final QName ON_CONTENT_READ = QName.createQName(NamespaceService.ALFRESCO_URI, "onContentRead");
/**
* On content update policy interface
@@ -41,4 +42,17 @@ public interface ContentServicePolicies
*/
public void onContentUpdate(NodeRef nodeRef, boolean newContent);
}
/**
* On content read policy interface.
*
* This policy is fired when a content reader is requested for a node that has content.
*/
public interface OnContentReadPolicy extends ClassPolicy
{
/**
* @param nodeRef the node reference
*/
public void onContentRead(NodeRef nodeRef);
}
}