1 17 package org.alfresco.repo.node; 18 19 import java.io.Serializable ; 20 import java.util.Map ; 21 22 import org.alfresco.repo.policy.AssociationPolicy; 23 import org.alfresco.repo.policy.ClassPolicy; 24 import org.alfresco.service.cmr.repository.ChildAssociationRef; 25 import org.alfresco.service.cmr.repository.AssociationRef; 26 import org.alfresco.service.cmr.repository.NodeRef; 27 import org.alfresco.service.cmr.repository.StoreRef; 28 import org.alfresco.service.namespace.QName; 29 30 35 public interface NodeServicePolicies 36 { 37 public interface BeforeCreateStorePolicy extends ClassPolicy 38 { 39 45 public void beforeCreateStore(QName nodeTypeQName, StoreRef storeRef); 46 } 47 48 public interface OnCreateStorePolicy extends ClassPolicy 49 { 50 55 public void onCreateStore(NodeRef rootNodeRef); 56 } 57 58 public interface BeforeCreateNodePolicy extends ClassPolicy 59 { 60 68 public void beforeCreateNode( 69 NodeRef parentRef, 70 QName assocTypeQName, 71 QName assocQName, 72 QName nodeTypeQName); 73 } 74 75 public interface OnCreateNodePolicy extends ClassPolicy 76 { 77 82 public void onCreateNode(ChildAssociationRef childAssocRef); 83 } 84 85 public interface BeforeUpdateNodePolicy extends ClassPolicy 86 { 87 93 public void beforeUpdateNode(NodeRef nodeRef); 94 } 95 96 public interface OnUpdateNodePolicy extends ClassPolicy 97 { 98 104 public void onUpdateNode(NodeRef nodeRef); 105 } 106 107 public interface OnUpdatePropertiesPolicy extends ClassPolicy 108 { 109 116 public void onUpdateProperties( 117 NodeRef nodeRef, 118 Map <QName, Serializable > before, 119 Map <QName, Serializable > after); 120 } 121 122 public interface BeforeDeleteNodePolicy extends ClassPolicy 123 { 124 129 public void beforeDeleteNode(NodeRef nodeRef); 130 } 131 132 public interface OnDeleteNodePolicy extends ClassPolicy 133 { 134 141 public void onDeleteNode(ChildAssociationRef childAssocRef); 142 } 143 144 public interface BeforeAddAspectPolicy extends ClassPolicy 145 { 146 152 public void beforeAddAspect(NodeRef nodeRef, QName aspectTypeQName); 153 } 154 155 public interface OnAddAspectPolicy extends ClassPolicy 156 { 157 163 public void onAddAspect(NodeRef nodeRef, QName aspectTypeQName); 164 } 165 166 public interface BeforeRemoveAspectPolicy extends ClassPolicy 167 { 168 174 public void beforeRemoveAspect(NodeRef nodeRef, QName aspectTypeQName); 175 } 176 177 public interface OnRemoveAspectPolicy extends ClassPolicy 178 { 179 185 public void onRemoveAspect(NodeRef nodeRef, QName aspectTypeQName); 186 } 187 188 public interface BeforeCreateChildAssociationPolicy extends AssociationPolicy 189 { 190 198 public void beforeCreateChildAssociation( 199 NodeRef parentNodeRef, 200 NodeRef childNodeRef, 201 QName assocTypeQName, 202 QName assocQName); 203 } 204 205 public interface OnCreateChildAssociationPolicy extends AssociationPolicy 206 { 207 212 public void onCreateChildAssociation(ChildAssociationRef childAssocRef); 213 } 214 215 public interface BeforeDeleteChildAssociationPolicy extends AssociationPolicy 216 { 217 222 public void beforeDeleteChildAssociation(ChildAssociationRef childAssocRef); 223 } 224 225 public interface OnDeleteChildAssociationPolicy extends AssociationPolicy 226 { 227 232 public void onDeleteChildAssociation(ChildAssociationRef childAssocRef); 233 } 234 235 public interface OnCreateAssociationPolicy extends AssociationPolicy 236 { 237 242 public void onCreateAssociation(AssociationRef nodeAssocRef); 243 } 244 245 public interface OnDeleteAssociationPolicy extends AssociationPolicy 246 { 247 252 public void onDeleteAssociation(AssociationRef nodeAssocRef); 253 } 254 } 255 | Popular Tags |