com.webmethods.caf.portalclient.meta
Class PCMetaHelper

java.lang.Object
  extended by com.webmethods.caf.portalclient.meta.PCMetaHelper

public class PCMetaHelper
extends Object


Constructor Summary
PCMetaHelper()
           
 
Method Summary
static Map convertViewPropertiesToMap(View view)
          Convert a View into a map of name/value pairs of the properties contained within that view.
static void delete(URI uri)
          Delete a MWS resource, given it's MWS thing URI
static View getView(URI uri)
          Get a View of a MWS thing, given it's URI
static ListView listChildren(URI uri)
          Retrieve a list of child resources within a MWS container
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PCMetaHelper

public PCMetaHelper()
Method Detail

getView

public static View getView(URI uri)
                    throws Exception
Get a View of a MWS thing, given it's URI

Parameters:
uri - the MWS thing URI
Returns:
a View that exposes properties of the MWS thing
Throws:
Exception

delete

public static void delete(URI uri)
                   throws Exception
Delete a MWS resource, given it's MWS thing URI

Parameters:
uri - the MWS thing URI
Throws:
Exception

listChildren

public static ListView listChildren(URI uri)
                             throws Exception
Retrieve a list of child resources within a MWS container

Parameters:
uri - the MWS thing URI of the container
Returns:
a ListView of Views for each child resource within the container
Throws:
Exception

convertViewPropertiesToMap

public static Map convertViewPropertiesToMap(View view)
Convert a View into a map of name/value pairs of the properties contained within that view.

Parameters:
view - the View to retrieve properties from
Returns:
a Map of key/value pairs representing the properties of the View target