public class NfsServerNodeMonitor extends java.lang.Object implements NodeServicePolicies.OnUpdatePropertiesPolicy, NodeServicePolicies.BeforeDeleteNodePolicy, NodeServicePolicies.OnCreateChildAssociationPolicy, NodeServicePolicies.OnDeleteChildAssociationPolicy, NodeServicePolicies.OnDeleteNodePolicy, org.springframework.beans.factory.InitializingBean
${filesystem.name} device namePolicy.Arg| Modifier and Type | Field and Description |
|---|---|
static char |
NIX_SEPARATOR |
static java.lang.String |
NIX_SEPARATOR_STR |
ARG_0, ARG_1, ARG_2, QNAMEQNAMEQNAMEQNAMEQNAME| Constructor and Description |
|---|
NfsServerNodeMonitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
beforeDeleteNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Called before a node is deleted.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getTargetDeviceName() |
org.alfresco.service.cmr.repository.StoreRef |
getTargetStoreRef() |
int |
hashCode() |
java.lang.Boolean |
isEnabled() |
void |
onCreateChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef,
boolean isNewNode)
Called after a node child association has been created.
|
void |
onDeleteChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
Called after a node child association has been deleted.
|
void |
onDeleteNode(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef,
boolean isNodeArchived)
Called after a node is deleted.
|
void |
onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.util.Map before,
java.util.Map after)
Called after a node's properties have been changed.
|
void |
setEnabled(boolean enabled)
Enables or disables policy handlers
|
void |
setFilesystemContexts(java.util.List filesystemContexts) |
void |
setNfsServer(org.alfresco.jlan.oncrpc.nfs.NFSServer nfsServer) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService) |
void |
setPolicyComponent(PolicyComponent policyComponent) |
void |
setTargetDeviceName(java.lang.String targetDeviceName) |
public static final char NIX_SEPARATOR
public static final java.lang.String NIX_SEPARATOR_STR
public void setEnabled(boolean enabled)
enabled - Boolean value which determines working state of the handlerpublic java.lang.Boolean isEnabled()
public void setTargetDeviceName(java.lang.String targetDeviceName)
public java.lang.String getTargetDeviceName()
public void setFilesystemContexts(java.util.List filesystemContexts)
public org.alfresco.service.cmr.repository.StoreRef getTargetStoreRef()
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setPolicyComponent(PolicyComponent policyComponent)
public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
public void setNfsServer(org.alfresco.jlan.oncrpc.nfs.NFSServer nfsServer)
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic void onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.util.Map before,
java.util.Map after)
NodeServicePolicies.OnUpdatePropertiesPolicyonUpdateProperties in interface NodeServicePolicies.OnUpdatePropertiesPolicynodeRef - reference to the updated nodebefore - the node's properties before the changeafter - the node's properties after the changepublic void beforeDeleteNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
NodeServicePolicies.BeforeDeleteNodePolicybeforeDeleteNode in interface NodeServicePolicies.BeforeDeleteNodePolicynodeRef - the node referencepublic void onDeleteNode(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef,
boolean isNodeArchived)
NodeServicePolicies.OnDeleteNodePolicyonDeleteNode in interface NodeServicePolicies.OnDeleteNodePolicychildAssocRef - the primary parent-child association of the deleted nodeisNodeArchived - indicates whether the node has been archived rather than purgedpublic void onCreateChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef,
boolean isNewNode)
NodeServicePolicies.OnCreateChildAssociationPolicyonCreateChildAssociation in interface NodeServicePolicies.OnCreateChildAssociationPolicychildAssocRef - the child association that has been createdisNewNode - true if the node is new or false if the node is being linked inpublic void onDeleteChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
NodeServicePolicies.OnDeleteChildAssociationPolicyonDeleteChildAssociation in interface NodeServicePolicies.OnDeleteChildAssociationPolicychildAssocRef - the child association that has been deletedpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.