com.webmethods.caf.portalclient.alias
Class PCAliasHelper

java.lang.Object
  extended by com.webmethods.caf.portalclient.alias.PCAliasHelper

public class PCAliasHelper
extends Object


Constructor Summary
PCAliasHelper()
           
 
Method Summary
static void createAlias(String key, URI resource)
          Static helper method to create a new alias for a MWS thing
static String[] listAliases(URI resource)
          Retrieve an array of alias identifier strings for a specified MWS thing
static AliasValue lookupalias(String key)
          Retrieve an alias for a given alias identifier
static void removeAlias(String key)
          Remove an alias from the MWS system
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PCAliasHelper

public PCAliasHelper()
Method Detail

createAlias

public static void createAlias(String key,
                               URI resource)
Static helper method to create a new alias for a MWS thing

Parameters:
key - the alias identifier to create
resource - the MWS thing to create an alias for

lookupalias

public static AliasValue lookupalias(String key)
Retrieve an alias for a given alias identifier

Parameters:
key - the alias identifier to lookup
Returns:
an AliasValue instance containing info about the retrieved alias, may be null if the alias identifier does not exist

removeAlias

public static void removeAlias(String key)
Remove an alias from the MWS system

Parameters:
key - the alias identifier to remove

listAliases

public static String[] listAliases(URI resource)
Retrieve an array of alias identifier strings for a specified MWS thing

Parameters:
resource - the MWS thing ID to retrieve aliases for
Returns:
array of alias identifier strings