Class PCAliasHelper
java.lang.Object
com.webmethods.caf.portalclient.alias.PCAliasHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
createAlias
(String key, URI resource) Static helper method to create a new alias for a MWS thingstatic String[]
listAliases
(URI resource) Retrieve an array of alias identifier strings for a specified MWS thingstatic AliasValue
lookupalias
(String key) Retrieve an alias for a given alias identifierstatic void
removeAlias
(String key) Remove an alias from the MWS system
-
Constructor Details
-
PCAliasHelper
public PCAliasHelper()
-
-
Method Details
-
createAlias
Static helper method to create a new alias for a MWS thing- Parameters:
key
- the alias identifier to createresource
- the MWS thing to create an alias for
-
lookupalias
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
Remove an alias from the MWS system- Parameters:
key
- the alias identifier to remove
-
listAliases
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
-