1 17 package org.alfresco.repo.content; 18 19 import org.alfresco.repo.policy.ClassPolicy; 20 import org.alfresco.service.cmr.repository.NodeRef; 21 import org.alfresco.service.namespace.NamespaceService; 22 import org.alfresco.service.namespace.QName; 23 24 29 public interface ContentServicePolicies 30 { 31 32 public static final QName ON_CONTENT_UPDATE = QName.createQName(NamespaceService.ALFRESCO_URI, "onContentUpdate"); 33 public static final QName ON_CONTENT_READ = QName.createQName(NamespaceService.ALFRESCO_URI, "onContentRead"); 34 35 38 public interface OnContentUpdatePolicy extends ClassPolicy 39 { 40 43 public void onContentUpdate(NodeRef nodeRef, boolean newContent); 44 } 45 46 51 public interface OnContentReadPolicy extends ClassPolicy 52 { 53 56 public void onContentRead(NodeRef nodeRef); 57 } 58 } 59 | Popular Tags |