org.alfresco.repo.attributes
Class AttributeServiceTransportService

java.lang.Object
  extended by org.alfresco.repo.attributes.AttributeServiceTransportService
All Implemented Interfaces:
AttributeServiceTransport

public class AttributeServiceTransportService
extends java.lang.Object
implements AttributeServiceTransport

Server side implementation of transport for AttributeService.


Constructor Summary
AttributeServiceTransportService()
           
 
Method Summary
 void addAttribute(java.lang.String ticket, java.util.List keys, Attribute value)
          Add an attribute to a List Attribute.
 void addAttribute(java.lang.String ticket, java.lang.String path, Attribute value)
          Add an attribute to a List Attribute
 void addAttributes(java.lang.String ticket, java.util.List keys, java.util.List values)
          Add a list of attributes.
 void addAttributes(java.lang.String ticket, java.lang.String path, java.util.List values)
          Add a list of attributes.
 boolean exists(java.lang.String ticket, java.util.List keys)
          Does an attribute exist.
 boolean exists(java.lang.String ticket, java.lang.String path)
          Does an attribute exist.
 Attribute getAttribute(java.lang.String ticket, java.util.List keys)
          Get an attribute.
 Attribute getAttribute(java.lang.String ticket, java.lang.String path)
          Get an Attribute.
 int getCount(java.lang.String ticket, java.util.List keys)
          Get the size of a map or list.
 int getCount(java.lang.String ticket, java.lang.String path)
          Get the size of a map or list.
 java.util.List getKeys(java.lang.String ticket, java.util.List keys)
          Get all the keys for a give attribute path.
 java.util.List getKeys(java.lang.String ticket, java.lang.String path)
          Get all the keys for a given attribute path.
 java.util.List query(java.lang.String ticket, java.util.List keys, AttrQuery query)
          Query for a list of attributes which are contained in a map defined by the given path and meet the query criteria.
 java.util.List query(java.lang.String ticket, java.lang.String path, AttrQuery query)
          Query for a list of attributes which are contained in the map defined by the given path and meet the query criteria.
 void removeAttribute(java.lang.String ticket, java.util.List keys, int index)
          Remove an attribute from a list.
 void removeAttribute(java.lang.String ticket, java.util.List keys, java.lang.String name)
          Remove an Attribute.
 void removeAttribute(java.lang.String ticket, java.lang.String path, int index)
          Remove an attribute from a list.
 void removeAttribute(java.lang.String ticket, java.lang.String path, java.lang.String name)
          Remove an Attribute.
 void removeEntries(java.lang.String ticket, java.util.List keys, AttrQuery query)
          Remove entries from a map that match a query.
 void removeEntries(java.lang.String ticket, java.lang.String path, AttrQuery query)
          Remove entries from a map that match a query.
 void setAttribute(java.lang.String ticket, java.util.List keys, int index, Attribute value)
          Set an attribute in a list.
 void setAttribute(java.lang.String ticket, java.util.List keys, java.lang.String name, Attribute value)
          Set an attribute
 void setAttribute(java.lang.String ticket, java.lang.String path, int index, Attribute value)
          Set an attribute in a list.
 void setAttribute(java.lang.String ticket, java.lang.String path, java.lang.String name, Attribute value)
          Set an attribute.
 void setAttributes(java.lang.String ticket, java.util.List keys, java.util.Map entries)
          Add a set of attributes.
 void setAttributes(java.lang.String ticket, java.lang.String path, java.util.Map entries)
          Add a set of attributes.
 void setAttributeService(AttributeService service)
           
 void setAuthenticationService(AuthenticationService service)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeServiceTransportService

public AttributeServiceTransportService()
Method Detail

setAttributeService

public void setAttributeService(AttributeService service)

setAuthenticationService

public void setAuthenticationService(AuthenticationService service)

addAttribute

public void addAttribute(java.lang.String ticket,
                         java.lang.String path,
                         Attribute value)
Description copied from interface: AttributeServiceTransport
Add an attribute to a List Attribute

Specified by:
addAttribute in interface AttributeServiceTransport
Parameters:
ticket - The authentication ticket.
path - The path to the list.
value - The Attribute to add.

addAttribute

public void addAttribute(java.lang.String ticket,
                         java.util.List keys,
                         Attribute value)
Description copied from interface: AttributeServiceTransport
Add an attribute to a List Attribute.

Specified by:
addAttribute in interface AttributeServiceTransport
Parameters:
ticket - The authentication ticket.
keys - The path components to the list.
value - The Attribute to add.

getAttribute

public Attribute getAttribute(java.lang.String ticket,
                              java.lang.String path)
Description copied from interface: AttributeServiceTransport
Get an Attribute.

Specified by:
getAttribute in interface AttributeServiceTransport
Parameters:
ticket - The authentication ticket.
path - The path of the Attribute.
Returns:
The value of the attribute or null.

getAttribute

public Attribute getAttribute(java.lang.String ticket,
                              java.util.List keys)
Description copied from interface: AttributeServiceTransport
Get an attribute.

Specified by:
getAttribute in interface AttributeServiceTransport
Parameters:
ticket - The authentication ticket.
keys - The keys in the attribute path.
Returns:
The value of the attribute or null.

getKeys

public java.util.List getKeys(java.lang.String ticket,
                              java.lang.String path)
Description copied from interface: AttributeServiceTransport
Get all the keys for a given attribute path.

Specified by:
getKeys in interface AttributeServiceTransport
Parameters:
ticket - The authentication ticket.
path - The attribute path.
Returns:
A list of all keys.

getKeys

public java.util.List getKeys(java.lang.String ticket,
                              java.util.List keys)
Description copied from interface: AttributeServiceTransport
Get all the keys for a give attribute path.

Specified by:
getKeys in interface AttributeServiceTransport
Parameters:
ticket - The authentication ticket.
keys - The keys of the attribute path.
Returns:
A list of all keys.

query

public java.util.List query(java.lang.String ticket,
                            java.lang.String path,
                            AttrQuery query)
Description copied from interface: AttributeServiceTransport
Query for a list of attributes which are contained in the map defined by the given path and meet the query criteria.

Specified by:
query in interface AttributeServiceTransport
Parameters:
ticket - The authentication ticket.
Returns:
A List of matching attributes.

query

public java.util.List query(java.lang.String ticket,
                            java.util.List keys,
                            AttrQuery query)
Description copied from interface: AttributeServiceTransport
Query for a list of attributes which are contained in a map defined by the given path and meet the query criteria.

Specified by:
query in interface AttributeServiceTransport
Parameters:
ticket - The authentication ticket.
keys - The list of attribute path keys.
Returns:
A list of matching attributes.

removeAttribute

public void removeAttribute(java.lang.String ticket,
                            java.lang.String path,
                            java.lang.String name)
Description copied from interface: AttributeServiceTransport
Remove an Attribute.

Specified by:
removeAttribute in interface AttributeServiceTransport
Parameters:
ticket - The authentication ticket.
name - The name of the Attribute.

removeAttribute

public void removeAttribute(java.lang.String ticket,
                            java.util.List keys,
                            java.lang.String name)
Description copied from interface: AttributeServiceTransport
Remove an Attribute.

Specified by:
removeAttribute in interface AttributeServiceTransport
Parameters:
ticket - The authentication ticket.
keys - List of attribute path keys.
name - The name of the attribute to remove.

removeAttribute

public void removeAttribute(java.lang.String ticket,
                            java.lang.String path,
                            int index)
Description copied from interface: AttributeServiceTransport
Remove an attribute from a list.

Specified by:
removeAttribute in interface AttributeServiceTransport
Parameters:
ticket - The authentication ticket.
path - The path to the list.
index - The index to remove.

removeAttribute

public void removeAttribute(java.lang.String ticket,
                            java.util.List keys,
                            int index)
Description copied from interface: AttributeServiceTransport
Remove an attribute from a list.

Specified by:
removeAttribute in interface AttributeServiceTransport
Parameters:
ticket - The authentication ticket.
keys - The components of the path to the list.
index - The index to remove.

setAttribute

public void setAttribute(java.lang.String ticket,
                         java.lang.String path,
                         java.lang.String name,
                         Attribute value)
Description copied from interface: AttributeServiceTransport
Set an attribute. Overwrites if it exists.

Specified by:
setAttribute in interface AttributeServiceTransport
Parameters:
ticket - The authentication ticket.
name - The name of the Attribute.
value - The value to set.

setAttribute

public void setAttribute(java.lang.String ticket,
                         java.util.List keys,
                         java.lang.String name,
                         Attribute value)
Description copied from interface: AttributeServiceTransport
Set an attribute

Specified by:
setAttribute in interface AttributeServiceTransport
Parameters:
ticket - The authentication ticket.
keys - List of attribute path keys.
name - The name of the attribute to set.
value - The Attribute to set.

setAttribute

public void setAttribute(java.lang.String ticket,
                         java.lang.String path,
                         int index,
                         Attribute value)
Description copied from interface: AttributeServiceTransport
Set an attribute in a list.

Specified by:
setAttribute in interface AttributeServiceTransport
Parameters:
ticket - The authentication ticket.
path - The path to the list.
index - The list index.
value - The Attribute to set.

setAttribute

public void setAttribute(java.lang.String ticket,
                         java.util.List keys,
                         int index,
                         Attribute value)
Description copied from interface: AttributeServiceTransport
Set an attribute in a list.

Specified by:
setAttribute in interface AttributeServiceTransport
Parameters:
ticket - The authentication ticket.
keys - The path components to the list.
index - The list index.
value - The Attribute to set.

exists

public boolean exists(java.lang.String ticket,
                      java.util.List keys)
Description copied from interface: AttributeServiceTransport
Does an attribute exist.

Specified by:
exists in interface AttributeServiceTransport
keys - List of attribute path keys.
Returns:
Whether the attribute exists.

exists

public boolean exists(java.lang.String ticket,
                      java.lang.String path)
Description copied from interface: AttributeServiceTransport
Does an attribute exist.

Specified by:
exists in interface AttributeServiceTransport
path - The path to the attribute.
Returns:
Whether the attribute exists.

getCount

public int getCount(java.lang.String ticket,
                    java.util.List keys)
Description copied from interface: AttributeServiceTransport
Get the size of a map or list.

Specified by:
getCount in interface AttributeServiceTransport
keys - List of attribute path keys.
Returns:
The size of of the list or map.

getCount

public int getCount(java.lang.String ticket,
                    java.lang.String path)
Description copied from interface: AttributeServiceTransport
Get the size of a map or list.

Specified by:
getCount in interface AttributeServiceTransport
path - The path to the map or list.
Returns:
The size of the list or map.

addAttributes

public void addAttributes(java.lang.String ticket,
                          java.util.List keys,
                          java.util.List values)
Description copied from interface: AttributeServiceTransport
Add a list of attributes.

Specified by:
addAttributes in interface AttributeServiceTransport

addAttributes

public void addAttributes(java.lang.String ticket,
                          java.lang.String path,
                          java.util.List values)
Description copied from interface: AttributeServiceTransport
Add a list of attributes.

Specified by:
addAttributes in interface AttributeServiceTransport

setAttributes

public void setAttributes(java.lang.String ticket,
                          java.util.List keys,
                          java.util.Map entries)
Description copied from interface: AttributeServiceTransport
Add a set of attributes.

Specified by:
setAttributes in interface AttributeServiceTransport

setAttributes

public void setAttributes(java.lang.String ticket,
                          java.lang.String path,
                          java.util.Map entries)
Description copied from interface: AttributeServiceTransport
Add a set of attributes.

Specified by:
setAttributes in interface AttributeServiceTransport

removeEntries

public void removeEntries(java.lang.String ticket,
                          java.util.List keys,
                          AttrQuery query)
Description copied from interface: AttributeServiceTransport
Remove entries from a map that match a query.

Specified by:
removeEntries in interface AttributeServiceTransport

removeEntries

public void removeEntries(java.lang.String ticket,
                          java.lang.String path,
                          AttrQuery query)
Description copied from interface: AttributeServiceTransport
Remove entries from a map that match a query.

Specified by:
removeEntries in interface AttributeServiceTransport


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.