Class PCAliasHelper

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

public class PCAliasHelper extends Object
  • Constructor Details

    • PCAliasHelper

      public PCAliasHelper()
  • Method Details

    • 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