Package ome.security
Interface NodeProvider
-
- All Known Implementing Classes:
NodeProviderInDb
,NodeProviderInMemory
,NodeProviderWrapper
public interface NodeProvider
Provider forNode
objects which is responsible for persisting and populating such entities. Used by Blitz'some.services.blitz.fire.Ring
.- Since:
- 5.3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ome.model.meta.Node
addManager(java.lang.String managerUuid, java.lang.String proxyString)
Adds a manager node.int
closeSessionsForManager(java.lang.String managerUuid)
Closes all sessions for a given manager node.ome.model.meta.Node
getManagerByUuid(java.lang.String managerUuid, ome.system.ServiceFactory sf)
Retrieves a given manager node.long
getManagerIdByUuid(java.lang.String managerUuid, ome.util.SqlAction sql)
Retrieves a given manager node ID.java.util.Set<java.lang.String>
getManagerList(boolean onlyActive)
ome.system.Principal
principal()
Retrieves the current active principal.void
setManagerDown(java.lang.String managerUuid)
Sets a given manager node as down.
-
-
-
Method Detail
-
getManagerList
java.util.Set<java.lang.String> getManagerList(boolean onlyActive)
-
getManagerIdByUuid
long getManagerIdByUuid(java.lang.String managerUuid, ome.util.SqlAction sql)
Retrieves a given manager node ID.- Parameters:
managerUuid
- manager node UUID to retrievesql
- active SQL context which can be used to make queries- Returns:
- See above.
-
getManagerByUuid
ome.model.meta.Node getManagerByUuid(java.lang.String managerUuid, ome.system.ServiceFactory sf)
Retrieves a given manager node.- Parameters:
managerUuid
- manager node UUID to retrievesf
- current session's service factory- Returns:
- See above.
-
closeSessionsForManager
int closeSessionsForManager(java.lang.String managerUuid)
Closes all sessions for a given manager node.- Parameters:
managerUuid
- manager node UUID to close sessions for- Returns:
- number of sessions affected by the closure
-
setManagerDown
void setManagerDown(java.lang.String managerUuid)
Sets a given manager node as down.- Parameters:
managerUuid
- manager node UUID to set as down
-
addManager
ome.model.meta.Node addManager(java.lang.String managerUuid, java.lang.String proxyString)
Adds a manager node.- Parameters:
managerUuid
- manager node UUID to addproxyString
- manager node proxy connection string- Returns:
- populated node entity.
-
principal
ome.system.Principal principal()
Retrieves the current active principal.- Returns:
- See above.
-
-