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
|
boolean |
exists(Path path)
Checks if a particular Path exists in the directory
|
String |
getAgentName(AgentPath agentPath)
Return the name of the Agent referenced by an AgentPath
|
AgentPath |
getAgentPath(String agentName)
Find the AgentPath for the named Agent
|
AgentPath[] |
getAgents(RolePath rolePath)
Returns all of the Agents in this centre who hold this role (including sub-roles)
|
Lookup.PagedResult |
getAgents(RolePath rolePath,
int offset,
int limit)
Returns all of the Agents who hold this role (including sub-roles)
|
Iterator<Path> |
getChildren(Path path)
List the next-level-deep children of a Path
|
Lookup.PagedResult |
getChildren(Path path,
int offset,
int limit)
List the next-level-deep children of a Path
|
String |
getIOR(Path path)
Resolve a path to a CORBA Object Item or Agent
|
ItemPath |
getItemPath(String sysKey)
Fetch the correct subclass class of ItemPath for a particular Item, derived from its lookup entry.
|
RolePath |
getRolePath(String roleName)
Find the RolePath for the named Role
|
RolePath[] |
getRoles(AgentPath agentPath)
Get all roles held by the given Agent
|
Lookup.PagedResult |
getRoles(AgentPath agentPath,
int offset,
int limit)
Get all roles held by the given Agent
|
boolean |
hasRole(AgentPath agentPath,
RolePath role)
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.
|
ItemPath |
resolvePath(DomainPath domainPath)
Find the ItemPath for which a DomainPath is an alias.
|
Lookup.PagedResult |
search(Path start,
List<Property> props,
int offset,
int limit)
Search for Items in the specified path with the given property list
|
Iterator<Path> |
search(Path start,
Property... props)
Search for Items in the specified path with the given property list
|
Iterator<Path> |
search(Path start,
PropertyDescriptionList props)
Search for Items of a particular type, based on its PropertyDescription outcome
|
Lookup.PagedResult |
search(Path start,
PropertyDescriptionList props,
int offset,
int limit)
Search for Items of a particular type, based on its PropertyDescription outcome
|
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)
Find a path with a particular name (last component)
|
Iterator<Path> |
searchAliases(ItemPath itemPath)
Find all DomainPaths that are aliases for a particular Item or Agent
|
Lookup.PagedResult |
searchAliases(ItemPath itemPath,
int offset,
int limit)
Find all DomainPaths that are aliases for a particular Item or Agent
|
void open(Authenticator user)
user - The connected Authenticator. The Lookup implementation may use the AuthObject in this to communicate with the database.void close()
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 resolvePath(DomainPath domainPath) throws InvalidItemPathException, ObjectNotFoundException
domainPath - The path to resolveInvalidItemPathExceptionObjectNotFoundExceptionString 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 itboolean exists(Path path)
path - The path to checkIterator<Path> getChildren(Path path)
path - The parent PathLookup.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 returneddefault Iterator<Path> search(Path start, String name)
start - Search rootname - The name to search forIterator<Path> search(Path start, String name, Lookup.SearchConstraints constraints)
start - Search rootname - The name to search forconstraints - to optimise the backend queryIterator<Path> search(Path start, Property... props)
start - Search rootprops - list of PropertiesLookup.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 returnedIterator<Path> search(Path start, PropertyDescriptionList props)
start - Search rootprops - Properties unmarshalled from an ItemDescription's property description outcome.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 returnedIterator<Path> searchAliases(ItemPath itemPath)
itemPath - The ItemPathLookup.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 returnedAgentPath getAgentPath(String agentName) throws ObjectNotFoundException
agentName - then name of the AgentObjectNotFoundExceptionRolePath getRolePath(String roleName) throws ObjectNotFoundException
roleName - the name of the RoleObjectNotFoundExceptionAgentPath[] getAgents(RolePath rolePath) throws ObjectNotFoundException
rolePath - the path representing the given RoleObjectNotFoundExceptionLookup.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 returnedObjectNotFoundExceptionRolePath[] getRoles(AgentPath agentPath)
agentPath - the path representing the given AgentLookup.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 returnedboolean hasRole(AgentPath agentPath, RolePath role)
agentPath - the path representing the given Agentrole - the path representing the given RoleString getAgentName(AgentPath agentPath) throws ObjectNotFoundException
agentPath - the path representing the given AgentObjectNotFoundExceptionCopyright © 1997–2020 CRISTAL-iSE. All rights reserved.