public interface LookupManager extends Lookup
Lookup.PagedResult, Lookup.SearchConstraints| Modifier and Type | Method and Description |
|---|---|
default void |
add(Path newPath)
Register a new a Path in the directory.
|
void |
add(Path newPath,
TransactionKey transactionKey)
Register a new a Path in the directory.
|
default void |
addRole(AgentPath agent,
RolePath rolePath)
Adds the given Agent to the given Role, if they both exist.
|
void |
addRole(AgentPath agent,
RolePath rolePath,
TransactionKey transactionKey)
Adds the given Agent to the given Role, if they both exist.
|
default RolePath |
createRole(RolePath role)
Creates a new Role.
|
RolePath |
createRole(RolePath role,
TransactionKey transactionKey)
Creates a new Role.
|
default void |
delete(Path path)
Remove a Path from the directory.
|
void |
delete(Path path,
TransactionKey transactionKey)
Remove a Path from the directory.
|
void |
initializeDirectory(TransactionKey transactionKey)
Called when a server starts up.
|
void |
postBoostrap() |
void |
postStartServer() |
default void |
removeRole(AgentPath agent,
RolePath role)
Remove the given Agent from the given Role.
|
void |
removeRole(AgentPath agent,
RolePath role,
TransactionKey transactionKey)
Remove the given Agent from the given Role.
|
default void |
setAgentPassword(AgentPath agent,
String newPassword)
Set permanent password of Agent's
|
default void |
setAgentPassword(AgentPath agent,
String newPassword,
boolean temporary)
Set an Agent's password
|
void |
setAgentPassword(AgentPath agent,
String newPassword,
boolean temporary,
TransactionKey transactionKey)
Set an Agent's password
This method can be used in server side code or Script to find uncommitted changes during the active transaction.
|
default void |
setHasJobList(RolePath role,
boolean hasJobList)
Set the flag specifying whether Activities holding this Role should push Jobs its Agents.
|
void |
setHasJobList(RolePath role,
boolean hasJobList,
TransactionKey transactionKey)
Set the flag specifying whether Activities holding this Role should push Jobs its Agents.
|
default void |
setIOR(ItemPath item,
String ior)
Set the IOR of the Item
|
void |
setIOR(ItemPath item,
String ior,
TransactionKey transactionKey)
Set the IOR of the Item
This method can be used in server side code or Script to find uncommitted changes during the active transaction.
|
default void |
setPermission(RolePath role,
String permission)
Sets the permission of the given Role.
|
void |
setPermission(RolePath role,
String permission,
TransactionKey transactionKey)
Sets the permission of the given Role.
|
default void |
setPermissions(RolePath role,
List<String> permissions)
Sets the list of permission of the given Role.
|
void |
setPermissions(RolePath role,
List<String> permissions,
TransactionKey transactionKey)
Sets the list of permission of the given Role.
|
close, exists, exists, getAgentName, getAgentName, getAgentPath, getAgentPath, getAgents, getAgents, getAgents, getAgents, getChildren, getChildren, getChildren, getChildren, getIOR, getIOR, getItemPath, getItemPath, getRolePath, getRolePath, getRoles, getRoles, getRoles, getRoles, hasRole, hasRole, open, resolvePath, resolvePath, search, search, search, search, search, search, search, search, search, search, searchAliases, searchAliases, searchAliases, searchAliasesvoid initializeDirectory(TransactionKey transactionKey) throws ObjectNotFoundException
transactionKey - identifier of the active transactionObjectNotFoundException - When initialization data is not founddefault void add(Path newPath) throws ObjectCannotBeUpdated, ObjectAlreadyExistsException
newPath - The path to addObjectCannotBeUpdated - When there is an error writing to the directoryObjectAlreadyExistsException - When the Path has already been registeredvoid add(Path newPath, TransactionKey transactionKey) throws ObjectCannotBeUpdated, ObjectAlreadyExistsException
newPath - The path to addtransactionKey - identifier of the active transactionObjectCannotBeUpdated - When there is an error writing to the directoryObjectAlreadyExistsException - When the Path has already been registereddefault void delete(Path path) throws ObjectCannotBeUpdated
path - The path to removeObjectCannotBeUpdated - When an error occurs writing to the directoryvoid delete(Path path, TransactionKey transactionKey) throws ObjectCannotBeUpdated
path - The path to removetransactionKey - identifier of the active transactionObjectCannotBeUpdated - When an error occurs writing to the directorydefault RolePath createRole(RolePath role) throws ObjectAlreadyExistsException, ObjectCannotBeUpdated
role - The new role pathObjectAlreadyExistsExceptionObjectCannotBeUpdatedRolePath createRole(RolePath role, TransactionKey transactionKey) throws ObjectAlreadyExistsException, ObjectCannotBeUpdated
role - The new role pathtransactionKey - identifier of the active transactionObjectAlreadyExistsExceptionObjectCannotBeUpdateddefault void addRole(AgentPath agent, RolePath rolePath) throws ObjectCannotBeUpdated, ObjectNotFoundException
agent - the path representing the given AgentrolePath - the path representing the given RoleObjectCannotBeUpdatedObjectNotFoundExceptionvoid addRole(AgentPath agent, RolePath rolePath, TransactionKey transactionKey) throws ObjectCannotBeUpdated, ObjectNotFoundException
agent - the path representing the given AgentrolePath - the path representing the given RoletransactionKey - identifier of the active transactionObjectCannotBeUpdatedObjectNotFoundExceptiondefault void removeRole(AgentPath agent, RolePath role) throws ObjectCannotBeUpdated, ObjectNotFoundException
agent - the path representing the given Agentrole - the path representing the given RoleObjectCannotBeUpdatedObjectNotFoundExceptionvoid removeRole(AgentPath agent, RolePath role, TransactionKey transactionKey) throws ObjectCannotBeUpdated, ObjectNotFoundException
agent - the path representing the given Agentrole - the path representing the given RoletransactionKey - identifier of the active transactionObjectCannotBeUpdatedObjectNotFoundExceptiondefault void setAgentPassword(AgentPath agent, String newPassword) throws ObjectNotFoundException, ObjectCannotBeUpdated, NoSuchAlgorithmException
agent - The AgentnewPassword - The Agent's new passwordObjectNotFoundExceptionObjectCannotBeUpdatedNoSuchAlgorithmExceptiondefault void setAgentPassword(AgentPath agent, String newPassword, boolean temporary) throws ObjectNotFoundException, ObjectCannotBeUpdated, NoSuchAlgorithmException
agent - The AgentnewPassword - The Agent's new passwordtemporary - whether the new password is temporary or notObjectNotFoundExceptionObjectCannotBeUpdatedNoSuchAlgorithmExceptionvoid setAgentPassword(AgentPath agent, String newPassword, boolean temporary, TransactionKey transactionKey) throws ObjectNotFoundException, ObjectCannotBeUpdated, NoSuchAlgorithmException
agent - The AgentnewPassword - The Agent's new passwordtemporary - whether the new password is temporary or nottransactionKey - identifier of the active transactionObjectNotFoundExceptionObjectCannotBeUpdatedNoSuchAlgorithmExceptiondefault void setHasJobList(RolePath role, boolean hasJobList) throws ObjectNotFoundException, ObjectCannotBeUpdated
role - The role to modifyhasJobList - boolean flagObjectNotFoundExceptionObjectCannotBeUpdatedvoid setHasJobList(RolePath role, boolean hasJobList, TransactionKey transactionKey) throws ObjectNotFoundException, ObjectCannotBeUpdated
role - The role to modifyhasJobList - boolean flagtransactionKey - identifier of the active transactionObjectNotFoundExceptionObjectCannotBeUpdateddefault void setIOR(ItemPath item, String ior) throws ObjectNotFoundException, ObjectCannotBeUpdated
item - the Item to be updatedior - the new iorObjectNotFoundException - Item does not existsObjectCannotBeUpdated - there was a probelm updating the iorvoid setIOR(ItemPath item, String ior, TransactionKey transactionKey) throws ObjectNotFoundException, ObjectCannotBeUpdated
item - the Item to be updatedior - the new iortransactionKey - identifier of the active transactionObjectNotFoundException - Item does not existsObjectCannotBeUpdated - there was a probelm updating the iordefault void setPermission(RolePath role, String permission) throws ObjectNotFoundException, ObjectCannotBeUpdated
role - the RolePath to changepermission - String using WildcardPermission format of shirotransactionKey - identifier of the active transactionObjectCannotBeUpdated - there was a problem updating the permissionsObjectNotFoundExceptionvoid setPermission(RolePath role, String permission, TransactionKey transactionKey) throws ObjectNotFoundException, ObjectCannotBeUpdated
role - the RolePath to changepermission - String using WildcardPermission format of shirotransactionKey - identifier of the active transactionObjectNotFoundException - Role does not existsObjectCannotBeUpdated - there was a problem updating the permissionsdefault void setPermissions(RolePath role, List<String> permissions) throws ObjectNotFoundException, ObjectCannotBeUpdated
role - the RolePath to changepermissions - list of String using WildcardPermission format of shiroObjectNotFoundException - Role does not existsObjectCannotBeUpdated - there was a problem updating the permissionsvoid setPermissions(RolePath role, List<String> permissions, TransactionKey transactionKey) throws ObjectNotFoundException, ObjectCannotBeUpdated
role - the RolePath to changepermissions - list of String using WildcardPermission format of shirotransactionKey - identifier of the active transactionObjectNotFoundException - Role does not existsObjectCannotBeUpdated - there was a problem updating the permissionsvoid postStartServer()
void postBoostrap()
Copyright © 1997–2022 CRISTAL-iSE. All rights reserved.