Package com.webmethods.portal.mech.alias
Interface IAliasMechanics
- All Superinterfaces:
IComponent
,IInitializable
,IMechanics
,ISystemHandler
- All Known Subinterfaces:
ITopicSpaceMechanics
This mechanics interacts with alias caches and values.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canCreateAlias
(IThingID userID, IURI key) returns true if the user can create an alias with that valueboolean
canCreateAliasKey
(IThingID userID, String key) returns true if the user can create an alias with that valueboolean
canRemoveAlias
(IThingID userID, IURI key) returns true if you can remove this aliasboolean
canRemoveAlias
(IThingID userID, String key) returns true if you can remove this aliasvoid
checkCreateAlias
(IThingID userID, IURI key) void
checkCreateAliasKey
(IThingID userID, String key) void
checkRemoveAlias
(IThingID userID, IURI key) void
checkRemoveAlias
(IThingID userID, String key) void
createAlias
(IURI key, IURI value, boolean isSystem) Creates a simpleIAliasValue
void
createAlias
(IURI key, IURI value, String params, boolean isSystem) Creates a simpleAliasValue
void
createAlias
(IURI key, String value, String params, boolean isSystem) Creates a simpleIAliasValue
void
createAlias
(String key, IURI value, boolean isSystem) Creates a simpleIAliasValue
void
createAlias
(String key, IURI value, String params, boolean isSystem) Creates a simpleIAliasValue
void
createAlias
(String key, String value, boolean isSystem) Creates a simpleIAliasValue
void
createAlias
(String key, String value, String params, boolean isSystem) Creates a simpleIAliasValue
void
fireAliasCreateEvent
(IThingID userID, Object key, Object value, boolean isSystem) Fires alias create eventvoid
fireAliasRemoveEvent
(IThingID userID, Object key) Fires alias remove eventlookupAlias
(IURI key) Retrieve the appropriateIAliasValue
based on a simple keylookupAlias
(String key) Retrieve the appropriateIAliasValue
based on a simple keyReturns all AliasKeyslookupAliasKeys
(IURI value) Returns a list of keys that have this valuelookupAliasKeys
(String value) Returns a list of keys that have this valuevoid
Reload alias cachevoid
removeAlias
(IURI key) Removes an aliasvoid
removeAlias
(String key) Removes an aliasMethods inherited from interface com.webmethods.portal.system.IComponent
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
Methods inherited from interface com.webmethods.portal.system.init.IInitializable
init, shutdown
-
Method Details
-
lookupAlias
Retrieve the appropriateIAliasValue
based on a simple key- Parameters:
key
- an arbitary key- Returns:
- the
IAliasValue
if found, NULL otherwise
-
lookupAlias
Retrieve the appropriateIAliasValue
based on a simple key- Parameters:
key
- an arbitary key (could also be aIThingID
- Returns:
- the
IAliasValue
if found, NULL otherwise
-
createAlias
Creates a simpleIAliasValue
- Parameters:
key
- the alias identifiervalue
- the target of the aliasisSystem
- whether this is a protected system alias
-
createAlias
Creates a simpleIAliasValue
- Parameters:
key
- the alias identifiervalue
- the target of the aliasparams
- extra params to appendisSystem
- whether this is a protected system alias
-
createAlias
Creates a simpleIAliasValue
- Parameters:
key
- the alias identifiervalue
- the target of the alias (could also be aIThingID
isSystem
- whether this is a protected system alias
-
createAlias
Creates a simpleIAliasValue
- Parameters:
key
- the alias identifiervalue
- the target of the alias (could also be aIThingID
params
- extra params to appendisSystem
- whether this is a protected system alias
-
createAlias
Creates a simpleIAliasValue
- Parameters:
key
- the alias identifiervalue
- the target of the aliasparams
- extra params to appendisSystem
- whether this is a protected system alias
-
createAlias
Creates a simpleIAliasValue
-
createAlias
Creates a simpleAliasValue
-
removeAlias
Removes an alias- Parameters:
key
- like used inlookupAlias(java.lang.String)
-
removeAlias
Removes an alias- Parameters:
key
- like used inlookupAlias(java.lang.String)
-
lookupAliasKeys
Collection<ICacheEntry> lookupAliasKeys()Returns all AliasKeys- Returns:
-
lookupAliasKeys
Returns a list of keys that have this value- Parameters:
value
- the target destination of the alias- Returns:
- a list of
IAliasKey
s that contain the keys. Maybe empty
-
lookupAliasKeys
Returns a list of keys that have this value- Parameters:
value
- the target destination of the alias- Returns:
- a list of
IAliasKey
s that contain the keys. Maybe empty
-
canCreateAliasKey
returns true if the user can create an alias with that value- Parameters:
userID
- the current userkey
- alias key- Throws:
PortalException
-
checkCreateAliasKey
-
canCreateAlias
returns true if the user can create an alias with that value- Parameters:
userID
- the current userkey
- only checked if a IThingID- Throws:
PortalException
-
checkCreateAlias
-
canRemoveAlias
returns true if you can remove this alias- Parameters:
userID
-key
- only check if a IThingID- Returns:
- Throws:
PortalException
-
checkRemoveAlias
-
canRemoveAlias
returns true if you can remove this alias- Parameters:
userID
-key
- only check if a IThingID- Returns:
- Throws:
PortalException
-
checkRemoveAlias
-
fireAliasCreateEvent
void fireAliasCreateEvent(IThingID userID, Object key, Object value, boolean isSystem) throws PortalException Fires alias create event- Throws:
PortalException
-
fireAliasRemoveEvent
Fires alias remove event- Throws:
PortalException
-
reloadAliasCache
Reload alias cache- Throws:
PortalException
-