org.alfresco.webservice.util
Class Utils

java.lang.Object
  extended by org.alfresco.webservice.util.Utils

public class Utils
extends java.lang.Object

This class provides a number of common utility methods usful when using the web service API


Constructor Summary
Utils()
           
 
Method Summary
static org.alfresco.webservice.types.NamedValue createNamedValue(java.lang.String name, java.lang.String value)
          Creates a single valued named value.
static org.alfresco.webservice.types.NamedValue createNamedValue(java.lang.String name, java.lang.String[] values)
          Creates a multi-valued named value
static java.lang.String getNodeRef(org.alfresco.webservice.types.Reference reference)
          Gets the node reference string for a given Reference object
static java.lang.String getStoreRef(org.alfresco.webservice.types.Store store)
          Gets the store reference string for a given Store object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

createNamedValue

public static org.alfresco.webservice.types.NamedValue createNamedValue(java.lang.String name,
                                                                        java.lang.String value)
Creates a single valued named value.

Parameters:
name - the name
value - the value
Returns:
NamedValue the created NamedValue object

createNamedValue

public static org.alfresco.webservice.types.NamedValue createNamedValue(java.lang.String name,
                                                                        java.lang.String[] values)
Creates a multi-valued named value

Parameters:
name - the name
values - the array of values
Returns:
NamedValue the create NamedValue object

getStoreRef

public static java.lang.String getStoreRef(org.alfresco.webservice.types.Store store)
Gets the store reference string for a given Store object.

Parameters:
store - the store
Returns:
String the store reference string

getNodeRef

public static java.lang.String getNodeRef(org.alfresco.webservice.types.Reference reference)
Gets the node reference string for a given Reference object

Parameters:
reference - the reference
Returns:
String the node reference string


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