public interface IAliasMechanics extends IMechanics
for details
Modifier and Type | Method and Description |
---|---|
boolean |
canCreateAlias(IThingID userID,
IURI key)
returns true if the user can create an alias with that value
|
boolean |
canCreateAliasKey(IThingID userID,
String key)
returns true if the user can create an alias with that value
|
boolean |
canRemoveAlias(IThingID userID,
IURI key)
returns true if you can remove this alias
|
boolean |
canRemoveAlias(IThingID userID,
String key)
returns true if you can remove this alias
|
void |
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 simple
IAliasValue |
void |
createAlias(IURI key,
IURI value,
String params,
boolean isSystem)
Creates a simple
AliasValue |
void |
createAlias(IURI key,
String value,
String params,
boolean isSystem)
Creates a simple
IAliasValue |
void |
createAlias(String key,
IURI value,
boolean isSystem)
Creates a simple
IAliasValue |
void |
createAlias(String key,
IURI value,
String params,
boolean isSystem)
Creates a simple
IAliasValue |
void |
createAlias(String key,
String value,
boolean isSystem)
Creates a simple
IAliasValue |
void |
createAlias(String key,
String value,
String params,
boolean isSystem)
Creates a simple
IAliasValue |
void |
fireAliasCreateEvent(IThingID userID,
Object key,
Object value,
boolean isSystem)
Fires alias create event
|
void |
fireAliasRemoveEvent(IThingID userID,
Object key)
Fires alias remove event
|
IAliasValue |
lookupAlias(IURI key)
Retrieve the appropriate
IAliasValue based on a simple key |
IAliasValue |
lookupAlias(String key)
Retrieve the appropriate
IAliasValue based on a simple key |
Collection<ICacheEntry> |
lookupAliasKeys()
Returns all AliasKeys
|
Collection<IAliasKey> |
lookupAliasKeys(IURI value)
Returns a list of keys that have this value
|
Collection<IAliasKey> |
lookupAliasKeys(String value)
Returns a list of keys that have this value
|
void |
reloadAliasCache()
Reload alias cache
|
void |
removeAlias(IURI key)
Removes an alias
|
void |
removeAlias(String key)
Removes an alias
|
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
IAliasValue lookupAlias(String key)
IAliasValue
based on a simple keykey
- an arbitary keyIAliasValue
if found, NULL otherwiseIAliasValue lookupAlias(IURI key)
IAliasValue
based on a simple keykey
- an arbitary key (could also be a IThingID
IAliasValue
if found, NULL otherwisevoid createAlias(String key, String value, boolean isSystem)
IAliasValue
key
- the alias identifiervalue
- the target of the aliasisSystem
- whether this is a protected system aliasvoid createAlias(String key, String value, String params, boolean isSystem)
IAliasValue
key
- the alias identifiervalue
- the target of the aliasparams
- extra params to appendisSystem
- whether this is a protected system aliasvoid createAlias(String key, IURI value, boolean isSystem)
IAliasValue
key
- the alias identifiervalue
- the target of the alias (could also be a IThingID
isSystem
- whether this is a protected system aliasvoid createAlias(String key, IURI value, String params, boolean isSystem)
IAliasValue
key
- the alias identifiervalue
- the target of the alias (could also be a IThingID
params
- extra params to appendisSystem
- whether this is a protected system aliasvoid createAlias(IURI key, String value, String params, boolean isSystem)
IAliasValue
key
- the alias identifiervalue
- the target of the aliasparams
- extra params to appendisSystem
- whether this is a protected system aliasvoid createAlias(IURI key, IURI value, boolean isSystem)
IAliasValue
void createAlias(IURI key, IURI value, String params, boolean isSystem)
AliasValue
void removeAlias(String key)
key
- like used in lookupAlias(java.lang.String)
void removeAlias(IURI key)
key
- like used in lookupAlias(java.lang.String)
Collection<ICacheEntry> lookupAliasKeys()
Collection<IAliasKey> lookupAliasKeys(String value)
value
- the target destination of the aliasIAliasKey
s that contain the keys. Maybe emptyCollection<IAliasKey> lookupAliasKeys(IURI value)
value
- the target destination of the aliasIAliasKey
s that contain the keys. Maybe emptyboolean canCreateAliasKey(IThingID userID, String key) throws PortalException
userID
- the current userkey
- alias keyPortalException
void checkCreateAliasKey(IThingID userID, String key) throws PortalException, PortalAccessException
boolean canCreateAlias(IThingID userID, IURI key) throws PortalException
userID
- the current userkey
- only checked if a IThingIDPortalException
void checkCreateAlias(IThingID userID, IURI key) throws PortalException, PortalAccessException
boolean canRemoveAlias(IThingID userID, IURI key) throws PortalException
userID
- key
- only check if a IThingIDPortalException
void checkRemoveAlias(IThingID userID, IURI key) throws PortalException, PortalAccessException
boolean canRemoveAlias(IThingID userID, String key) throws PortalException
userID
- key
- only check if a IThingIDPortalException
void checkRemoveAlias(IThingID userID, String key) throws PortalException, PortalAccessException
void fireAliasCreateEvent(IThingID userID, Object key, Object value, boolean isSystem) throws PortalException
PortalException
void fireAliasRemoveEvent(IThingID userID, Object key) throws PortalException
PortalException
void reloadAliasCache() throws PortalException
PortalException