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:
Britt Park
2007-01-12 00:27:17 +00:00
parent 3423ec8c18
commit a942a1ab1c
5 changed files with 175 additions and 0 deletions

View File

@@ -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);
}