mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added aspect related calls to AVMRemote interface and friends.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4799 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -25,7 +25,9 @@ import java.util.Map;
|
||||
import java.util.SortedMap;
|
||||
|
||||
import org.alfresco.repo.domain.PropertyValue;
|
||||
import org.alfresco.service.cmr.avm.AVMExistsException;
|
||||
import org.alfresco.service.cmr.avm.AVMNodeDescriptor;
|
||||
import org.alfresco.service.cmr.avm.AVMNotFoundException;
|
||||
import org.alfresco.service.cmr.avm.AVMStoreDescriptor;
|
||||
import org.alfresco.service.cmr.avm.LayeringDescriptor;
|
||||
import org.alfresco.service.cmr.avm.VersionDescriptor;
|
||||
@@ -405,4 +407,40 @@ public interface AVMRemote
|
||||
* @param destName The new name.
|
||||
*/
|
||||
public void renameStore(String sourceName, String destName);
|
||||
|
||||
/**
|
||||
* Add an aspect to an AVM node.
|
||||
* @param path The path to the node.
|
||||
* @param aspectName The QName of the aspect.
|
||||
* @throws AVMNotFoundException
|
||||
* @throws AVMExistsException
|
||||
*/
|
||||
public void addAspect(String path, QName aspectName);
|
||||
|
||||
/**
|
||||
* Get all the aspects on an AVM node.
|
||||
* @param version The version to look under.
|
||||
* @param path The path to the node.
|
||||
* @return A List of the QNames of the aspects.
|
||||
* @throws AVMNotFoundException
|
||||
*/
|
||||
public List<QName> getAspects(int version, String path);
|
||||
|
||||
/**
|
||||
* Remove an aspect and its properties from a node.
|
||||
* @param path The path to the node.
|
||||
* @param aspectName The name of the aspect.
|
||||
* @throws AVMNotFoundException
|
||||
*/
|
||||
public void removeAspect(String path, QName aspectName);
|
||||
|
||||
/**
|
||||
* Does a node have a particular aspect.
|
||||
* @param version The version to look under.
|
||||
* @param path The path to the node.
|
||||
* @param aspectName The aspect name to check.
|
||||
* @return Whether the given node has the given aspect.
|
||||
* @throws AVMNotFoundException
|
||||
*/
|
||||
public boolean hasAspect(int version, String path, QName aspectName);
|
||||
}
|
||||
|
@@ -9,7 +9,9 @@ import java.util.Map;
|
||||
import java.util.SortedMap;
|
||||
|
||||
import org.alfresco.repo.domain.PropertyValue;
|
||||
import org.alfresco.service.cmr.avm.AVMExistsException;
|
||||
import org.alfresco.service.cmr.avm.AVMNodeDescriptor;
|
||||
import org.alfresco.service.cmr.avm.AVMNotFoundException;
|
||||
import org.alfresco.service.cmr.avm.AVMStoreDescriptor;
|
||||
import org.alfresco.service.cmr.avm.LayeringDescriptor;
|
||||
import org.alfresco.service.cmr.avm.VersionDescriptor;
|
||||
@@ -424,4 +426,39 @@ public interface AVMRemoteTransport
|
||||
* @param destName The new name.
|
||||
*/
|
||||
public void renameStore(String ticket, String sourceName, String destName);
|
||||
/**
|
||||
* Add an aspect to an AVM node.
|
||||
* @param path The path to the node.
|
||||
* @param aspectName The QName of the aspect.
|
||||
* @throws AVMNotFoundException
|
||||
* @throws AVMExistsException
|
||||
*/
|
||||
public void addAspect(String ticket, String path, QName aspectName);
|
||||
|
||||
/**
|
||||
* Get all the aspects on an AVM node.
|
||||
* @param version The version to look under.
|
||||
* @param path The path to the node.
|
||||
* @return A List of the QNames of the aspects.
|
||||
* @throws AVMNotFoundException
|
||||
*/
|
||||
public List<QName> getAspects(String ticket, int version, String path);
|
||||
|
||||
/**
|
||||
* Remove an aspect and its properties from a node.
|
||||
* @param path The path to the node.
|
||||
* @param aspectName The name of the aspect.
|
||||
* @throws AVMNotFoundException
|
||||
*/
|
||||
public void removeAspect(String ticket, String path, QName aspectName);
|
||||
|
||||
/**
|
||||
* Does a node have a particular aspect.
|
||||
* @param version The version to look under.
|
||||
* @param path The path to the node.
|
||||
* @param aspectName The aspect name to check.
|
||||
* @return Whether the given node has the given aspect.
|
||||
* @throws AVMNotFoundException
|
||||
*/
|
||||
public boolean hasAspect(String ticket, int version, String path, QName aspectName);
|
||||
}
|
||||
|
Reference in New Issue
Block a user