mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Marking of AVM Nodes with Aspects works (according to some minimal tests).
Schema has been updated, DAO written, garbage collection updated to clean out aspects. Also some seemingly unnecessary changes in visibility declarations to deal with strange intermittent Spring wiring failures in one of my tests. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3560 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -575,4 +575,37 @@ public interface AVMService
|
||||
* to a file.
|
||||
*/
|
||||
public void setContentData(String path, ContentData data);
|
||||
|
||||
/**
|
||||
* Add an aspect to an AVM node.
|
||||
* @param path The path to the node.
|
||||
* @param aspectName The QName of the aspect.
|
||||
* @throws AVMNotFoundException If <code>path</code> does not exist.
|
||||
* @throws AVMExistsException If the aspect already exists.
|
||||
*/
|
||||
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.
|
||||
*/
|
||||
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.
|
||||
*/
|
||||
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.
|
||||
*/
|
||||
public boolean hasAspect(int version, String path, QName aspectName);
|
||||
}
|
||||
|
Reference in New Issue
Block a user