public interface Lookup
| Modifier and Type | Interface and Description |
|---|---|
static class |
Lookup.PagedResult |
static class |
Lookup.SearchConstraints |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shutdown the lookup
|
default boolean |
exists(Path path)
Checks if a particular Path exists in the directory
|
boolean |
exists(Path path,
TransactionKey transactionKey)
Checks if a particular Path exists in the directory
This method can be used in server side code or Script to find uncommitted changes during the active transaction.
|
default String |
getAgentName(AgentPath agentPath)
Return the name of the Agent referenced by an AgentPath
|
String |
getAgentName(AgentPath agentPath,
TransactionKey transactionKey)
Return the name of the Agent referenced by an AgentPath
This method can be used in server side code or Script to find uncommitted changes during the active transaction.
|
default AgentPath |
getAgentPath(String agentName)
Find the AgentPath for the named Agent
|
AgentPath |
getAgentPath(String agentName,
TransactionKey transactionKey)
Find the AgentPath for the named Agent
This method can be used in server side code or Script to find uncommitted changes during the active transaction.
|
default AgentPath[] |
getAgents(RolePath rolePath)
Returns all of the Agents in this centre who hold this role (including sub-roles)
|
default Lookup.PagedResult |
getAgents(RolePath rolePath,
int offset,
int limit)
Returns all of the Agents who hold this role (including sub-roles)
|
Lookup.PagedResult |
getAgents(RolePath rolePath,
int offset,
int limit,
TransactionKey transactionKey)
Returns all of the Agents who hold this role (including sub-roles)
This method can be used in server side code or Script to find uncommitted changes during the active transaction.
|
AgentPath[] |
getAgents(RolePath rolePath,
TransactionKey transactionKey)
Returns all of the Agents in this centre who hold this role (including sub-roles)
This method can be used in server side code or Script to find uncommitted changes during the active transaction.
|
default Iterator<Path> |
getChildren(Path path)
List the next-level-deep children of a Path
|
default Lookup.PagedResult |
getChildren(Path path,
int offset,
int limit)
List the next-level-deep children of a Path
|
Lookup.PagedResult |
getChildren(Path path,
int offset,
int limit,
TransactionKey transactionKey)
List the next-level-deep children of a Path
This method can be used in server side code or Script to find uncommitted changes during the active transaction.
|
Iterator<Path> |
getChildren(Path path,
TransactionKey transactionKey)
List the next-level-deep children of a Path
This method can be used in server side code or Script to find uncommitted changes during the active transaction.
|
default String |
getIOR(Path path)
Resolves the IOR to a CORBA Object (Item or Agent)
|
String |
getIOR(Path path,
TransactionKey transactionKey)
Resolves the IOR to a CORBA Object (Item or Agent)
This method can be used in server side code or Script to find uncommitted changes during the active transaction.
|
default ItemPath |
getItemPath(String sysKey)
Fetch the correct subclass class of ItemPath for a particular Item, derived from its lookup entry.
|
ItemPath |
getItemPath(String sysKey,
TransactionKey transactionKey)
Fetch the correct subclass class of ItemPath for a particular Item, derived from its lookup entry.
|
default RolePath |
getRolePath(String roleName)
Find the RolePath for the named Role
|
RolePath |
getRolePath(String roleName,
TransactionKey transactionKey)
Find the RolePath for the named Role
This method can be used in server side code or Script to find uncommitted changes during the active transaction.
|
default RolePath[] |
getRoles(AgentPath agentPath)
Get all roles held by the given Agent
|
default Lookup.PagedResult |
getRoles(AgentPath agentPath,
int offset,
int limit)
Get all roles held by the given Agent
|
Lookup.PagedResult |
getRoles(AgentPath agentPath,
int offset,
int limit,
TransactionKey transactionKey)
Get all roles held by the given Agent
This method can be used in server side code or Script to find uncommitted changes during the active transaction.
|
RolePath[] |
getRoles(AgentPath agentPath,
TransactionKey transactionKey)
Get all roles held by the given Agent
This method can be used in server side code or Script to find uncommitted changes during the active transaction.
|
default boolean |
hasRole(AgentPath agentPath,
RolePath role)
Checks if an agent qualifies as holding the stated Role, including any sub-role logic.
|
boolean |
hasRole(AgentPath agentPath,
RolePath role,
TransactionKey transactionKey)
Checks if an agent qualifies as holding the stated Role, including any sub-role logic.
|
void |
open(Authenticator user)
Connect to the directory using the credentials supplied in the Authenticator.
|
default ItemPath |
resolvePath(DomainPath domainPath)
Find the ItemPath for which a DomainPath is an alias.
|
ItemPath |
resolvePath(DomainPath domainPath,
TransactionKey transactionKey)
Find the ItemPath for which a DomainPath is an alias.
|
default Lookup.PagedResult |
search(Path start,
List<Property> props,
int offset,
int limit)
Search for Items in the specified path with the given property list
|
Lookup.PagedResult |
search(Path start,
List<Property> props,
int offset,
int limit,
TransactionKey transactionKey)
Search for Items in the specified path with the given property list
This method can be used in server side code or Script to find uncommitted changes during the active transaction.
|
default Iterator<Path> |
search(Path start,
Property... props)
Search for Items in the specified path with the given property list
|
default Iterator<Path> |
search(Path start,
PropertyDescriptionList props)
Search for Items of a particular type, based on its PropertyDescription outcome
|
default Lookup.PagedResult |
search(Path start,
PropertyDescriptionList props,
int offset,
int limit)
Search for Items of a particular type, based on its PropertyDescription outcome
|
Lookup.PagedResult |
search(Path start,
PropertyDescriptionList props,
int offset,
int limit,
TransactionKey transactionKey)
Search for Items of a particular type, based on its PropertyDescription outcome
This method can be used in server side code or Script to find uncommitted changes during the active transaction.
|
Iterator<Path> |
search(Path start,
PropertyDescriptionList props,
TransactionKey transactionKey)
Search for Items of a particular type, based on its PropertyDescription outcome
This method can be used in server side code or Script to find uncommitted changes during the active transaction.
|
default Iterator<Path> |
search(Path start,
String name)
Find a path with a particular name (last component).
|
Iterator<Path> |
search(Path start,
String name,
Lookup.SearchConstraints constraints,
TransactionKey transactionKey)
Find a path with a particular name (last component)
This method can be used in server side code or Script to find uncommitted changes during the active transaction.
|
Iterator<Path> |
search(Path start,
TransactionKey transactionKey,
Property... props)
Search for Items in the specified path with the given property list
This method can be used in server side code or Script to find uncommitted changes during the active transaction.
|
default Iterator<Path> |
searchAliases(ItemPath itemPath)
Find all DomainPaths that are aliases for a particular Item or Agent
|
default Lookup.PagedResult |
searchAliases(ItemPath itemPath,
int offset,
int limit)
Find all DomainPaths that are aliases for a particular Item or Agent
|
Lookup.PagedResult |
searchAliases(ItemPath itemPath,
int offset,
int limit,
TransactionKey transactionKey)
Find all DomainPaths that are aliases for a particular Item or Agent
This method can be used in server side code or Script to find uncommitted changes during the active transaction.
|
Iterator<Path> |
searchAliases(ItemPath itemPath,
TransactionKey transactionKey)
Find all DomainPaths that are aliases for a particular Item or Agent
This method can be used in server side code or Script to find uncommitted changes during the active transaction.
|
void open(Authenticator user)
user - The connected Authenticator. The Lookup implementation may use the AuthObject in this to communicate with the database.void close()
default ItemPath getItemPath(String sysKey) throws InvalidItemPathException, ObjectNotFoundException
sysKey - The system key of the ItemInvalidItemPathException - When the system key is invalid/out-of-rangeObjectNotFoundException - When the Item does not exist in the directory.ItemPath getItemPath(String sysKey, TransactionKey transactionKey) throws InvalidItemPathException, ObjectNotFoundException
sysKey - The system key of the ItemtransactionKey - identifier of the active transactionInvalidItemPathException - When the system key is invalid/out-of-rangeObjectNotFoundException - When the Item does not exist in the directory.default ItemPath resolvePath(DomainPath domainPath) throws InvalidItemPathException, ObjectNotFoundException
domainPath - The path to resolveInvalidItemPathExceptionObjectNotFoundExceptionItemPath resolvePath(DomainPath domainPath, TransactionKey transactionKey) throws InvalidItemPathException, ObjectNotFoundException
domainPath - The path to resolvetransactionKey - identifier of the active transactionInvalidItemPathExceptionObjectNotFoundExceptiondefault String getIOR(Path path) throws ObjectNotFoundException
path - The path to be resolvedObjectNotFoundException - When the Path doesn't exist, or doesn't have an IOR associated with itString getIOR(Path path, TransactionKey transactionKey) throws ObjectNotFoundException
path - The path to be resolvedtransactionKey - identifier of the active transactionObjectNotFoundException - When the Path doesn't exist, or doesn't have an IOR associated with itdefault boolean exists(Path path)
path - The path to checkboolean exists(Path path, TransactionKey transactionKey)
path - The path to checktransactionKey - identifier of the active transactiondefault Iterator<Path> getChildren(Path path)
path - The parent PathIterator<Path> getChildren(Path path, TransactionKey transactionKey)
path - The parent PathtransactionKey - identifier of the active transactiondefault Lookup.PagedResult getChildren(Path path, int offset, int limit)
path - The parent Pathoffset - the number of records to be skipped from the resultlimit - the max number of records to be returnedLookup.PagedResult getChildren(Path path, int offset, int limit, TransactionKey transactionKey)
path - The parent Pathoffset - the number of records to be skipped from the resultlimit - the max number of records to be returnedtransactionKey - identifier of the active transactiondefault Iterator<Path> search(Path start, String name)
start - Search rootname - The name to search forIterator<Path> search(Path start, String name, Lookup.SearchConstraints constraints, TransactionKey transactionKey)
start - Search rootname - The name to search forconstraints - to optimise the backend querytransactionKey - identifier of the active transactiondefault Iterator<Path> search(Path start, Property... props)
start - Search rootprops - list of PropertiesIterator<Path> search(Path start, TransactionKey transactionKey, Property... props)
start - Search roottransactionKey - identifier of the active transactionprops - list of Propertiesdefault Lookup.PagedResult search(Path start, List<Property> props, int offset, int limit)
start - Search rootprops - list of Propertiesoffset - the number of records to be skipped from the resultlimit - the max number of records to be returnedLookup.PagedResult search(Path start, List<Property> props, int offset, int limit, TransactionKey transactionKey)
start - Search rootprops - list of Propertiesoffset - the number of records to be skipped from the resultlimit - the max number of records to be returnedtransactionKey - identifier of the active transactiondefault Iterator<Path> search(Path start, PropertyDescriptionList props)
start - Search rootprops - Properties unmarshalled from an ItemDescription's property description outcome.Iterator<Path> search(Path start, PropertyDescriptionList props, TransactionKey transactionKey)
start - Search rootprops - Properties unmarshalled from an ItemDescription's property description outcome.transactionKey - identifier of the active transactiondefault Lookup.PagedResult search(Path start, PropertyDescriptionList props, int offset, int limit)
start - Search rootprops - Properties unmarshalled from an ItemDescription's property description outcome.offset - the number of records to be skipped from the resultlimit - the max number of records to be returnedLookup.PagedResult search(Path start, PropertyDescriptionList props, int offset, int limit, TransactionKey transactionKey)
start - Search rootprops - Properties unmarshalled from an ItemDescription's property description outcome.offset - the number of records to be skipped from the resultlimit - the max number of records to be returnedtransactionKey - identifier of the active transactiondefault Iterator<Path> searchAliases(ItemPath itemPath)
itemPath - The ItemPathIterator<Path> searchAliases(ItemPath itemPath, TransactionKey transactionKey)
itemPath - The ItemPathtransactionKey - identifier of the active transactiondefault Lookup.PagedResult searchAliases(ItemPath itemPath, int offset, int limit)
itemPath - The ItemPathoffset - the number of records to be skipped from the resultlimit - the max number of records to be returnedLookup.PagedResult searchAliases(ItemPath itemPath, int offset, int limit, TransactionKey transactionKey)
itemPath - The ItemPathoffset - the number of records to be skipped from the resultlimit - the max number of records to be returnedtransactionKey - identifier of the active transactiondefault AgentPath getAgentPath(String agentName) throws ObjectNotFoundException
agentName - then name of the AgentObjectNotFoundExceptionAgentPath getAgentPath(String agentName, TransactionKey transactionKey) throws ObjectNotFoundException
agentName - then name of the AgenttransactionKey - identifier of the active transactionObjectNotFoundExceptiondefault RolePath getRolePath(String roleName) throws ObjectNotFoundException
roleName - the name of the RoleObjectNotFoundExceptionRolePath getRolePath(String roleName, TransactionKey transactionKey) throws ObjectNotFoundException
roleName - the name of the RoletransactionKey - identifier of the active transactionObjectNotFoundExceptiondefault AgentPath[] getAgents(RolePath rolePath) throws ObjectNotFoundException
rolePath - the path representing the given RoleObjectNotFoundExceptionAgentPath[] getAgents(RolePath rolePath, TransactionKey transactionKey) throws ObjectNotFoundException
rolePath - the path representing the given RoletransactionKey - identifier of the active transactionObjectNotFoundExceptiondefault Lookup.PagedResult getAgents(RolePath rolePath, int offset, int limit) throws ObjectNotFoundException
rolePath - the path representing the given Roleoffset - the number of records to be skipped from the resultlimit - the max number of records to be returnedObjectNotFoundExceptionLookup.PagedResult getAgents(RolePath rolePath, int offset, int limit, TransactionKey transactionKey) throws ObjectNotFoundException
rolePath - the path representing the given Roleoffset - the number of records to be skipped from the resultlimit - the max number of records to be returnedtransactionKey - identifier of the active transactionObjectNotFoundExceptiondefault RolePath[] getRoles(AgentPath agentPath)
agentPath - the path representing the given AgentRolePath[] getRoles(AgentPath agentPath, TransactionKey transactionKey)
agentPath - the path representing the given AgenttransactionKey - identifier of the active transactiondefault Lookup.PagedResult getRoles(AgentPath agentPath, int offset, int limit)
agentPath - the path representing the given Agentoffset - the number of records to be skipped from the resultlimit - the max number of records to be returnedLookup.PagedResult getRoles(AgentPath agentPath, int offset, int limit, TransactionKey transactionKey)
agentPath - the path representing the given Agentoffset - the number of records to be skipped from the resultlimit - the max number of records to be returnedtransactionKey - identifier of the active transactiondefault boolean hasRole(AgentPath agentPath, RolePath role)
agentPath - the path representing the given Agentrole - the path representing the given Roleboolean hasRole(AgentPath agentPath, RolePath role, TransactionKey transactionKey)
agentPath - the path representing the given Agentrole - the path representing the given RoletransactionKey - identifier of the active transactiondefault String getAgentName(AgentPath agentPath) throws ObjectNotFoundException
agentPath - the path representing the given AgentObjectNotFoundExceptionString getAgentName(AgentPath agentPath, TransactionKey transactionKey) throws ObjectNotFoundException
agentPath - the path representing the given AgenttransactionKey - identifier of the active transactionObjectNotFoundExceptionCopyright © 1997–2022 CRISTAL-iSE. All rights reserved.