mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added deleteNodeProperties to AVMService interface. Fits in well with NodeService
behavior. Outline of implementation of AVMNodeService, an AVM based implementationof NodeService. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3438 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1183,7 +1183,28 @@ class AVMServiceImpl implements AVMService
|
||||
TxnCallback doit = new TxnCallback();
|
||||
fTransaction.perform(doit, true);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Delete all the properties attached to an AVM node.
|
||||
* @param path The path to the node.
|
||||
*/
|
||||
public void deleteNodeProperties(final String path)
|
||||
{
|
||||
if (path == null)
|
||||
{
|
||||
throw new AVMBadArgumentException("Null path.");
|
||||
}
|
||||
class TxnCallback implements RetryingTransactionCallback
|
||||
{
|
||||
public void perform()
|
||||
{
|
||||
fAVMRepository.deleteNodeProperties(path);
|
||||
}
|
||||
}
|
||||
TxnCallback doit = new TxnCallback();
|
||||
fTransaction.perform(doit, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set a property on a store. If the property exists it will be overwritten.
|
||||
* @param store The store to set the property on.
|
||||
|
Reference in New Issue
Block a user