ListAttribute seems to be mostly working, though I had to tweak hibernate-cfg.properties to

make it suck back generated primary keys.
Restructured ListEntry so that most most gets are via Session.get() rather than by query.
Added new methods to AttributeService to handle ListAttribute specific operations.
Added a little more testing for AttributeService.
I'm praying that the build will be repaired, since my efforts having been doing
so much lately.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5553 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2007-04-26 00:31:33 +00:00
parent 602440a983
commit d3aae2a9b7
18 changed files with 404 additions and 164 deletions

View File

@@ -65,6 +65,36 @@ public interface AttributeService
*/
public void setAttribute(List<String> keys, String name, Attribute value);
/**
* Set an attribute in a list.
* @param path The path to the list.
* @param index The list index.
* @param value The Attribute to set.
*/
public void setAttribute(String path, int index, Attribute value);
/**
* Set an attribute in a list.
* @param keys The path components to the list.
* @param index The list index.
* @param value The Attribute to set.
*/
public void setAttribute(List<String> keys, int index, Attribute value);
/**
* Add an attribute to a List Attribute
* @param path The path to the list.
* @param value The Attribute to add.
*/
public void addAttribute(String path, Attribute value);
/**
* Add an attribute to a List Attribute.
* @param keys The path components to the list.
* @param value The Attribute to add.
*/
public void addAttribute(List<String> keys, Attribute value);
/**
* Remove an Attribute.
* @param name The name of the Attribute.
@@ -77,7 +107,21 @@ public interface AttributeService
* @param name The name of the attribute to remove.
*/
public void removeAttribute(List<String> keys, String name);
/**
* Remove an attribute from a list.
* @param path The path to the list.
* @param index The index to remove.
*/
public void removeAttribute(String path, int index);
/**
* Remove an attribute from a list.
* @param keys The components of the path to the list.
* @param index The index to remove.
*/
public void removeAttribute(List<String> keys, int index);
/**
* Query for a list of attributes which are contained in the map
* defined by the given path and meet the query criteria.