Package org.openiam.authmanager.dao
Interface AuthManagerDAO
-
- All Known Implementing Classes:
AuthManagerDAOImpl
public interface AuthManagerDAO
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,String>getEdgeIds()Map<EdgeVertexType,Set<String>>getExpiredEdgeIds(Date now)Map<VertexType,Map<String,String>>getGraphVertexIds()voidnullOutEdges(Map<EdgeVertexType,Set<String>> edgeIdentity2EdgeIdMap)The name of this method is somewhat misleading.StringselectGraphId(VertexType type, String openiamid)voidupdateEdge(String membershipId, String rightId, String edgeId, VertexType parentType, VertexType childType)Updates the EDGE_ID field in the database, based on the membership id and right id The parentType and childType VertexTypes will dictate which XREF table gets updatedvoidupdateEdges(List<RightAwareEdgeDatabaseTuple> rightAwareEdgeDatabaseTuple, VertexType parentType, VertexType childType)Batch updates the necessary database right xref database table The parentType and childType VertexTypes will dictate which XREF table gets updatedvoidupdateEdgesWithoutRights(List<RightAwareEdgeDatabaseTuple> rightAwareEdgeDatabaseTuple, VertexType parentType, VertexType childType)Batch updates the necessary database right xref database table The parentType and childType VertexTypes will dictate which XREF table gets updatedvoidupdateGraphId(VertexType type, String id, String graphId)Updates the underlying GraphID property in the database.voidupdateGraphId(VertexType type, List<Tuple<String,String>> id2GraphIdMap)Updates the underlying GraphID property in the database.
-
-
-
Method Detail
-
updateGraphId
void updateGraphId(VertexType type, String id, String graphId)
Updates the underlying GraphID property in the database. This property is known only by JDBC, and not by hibernate, because only graph-specific actions require it, and the code that requires updating this propoerty will not necesssarily have access to Hibernate or JPA.- Parameters:
type- - type of entityid- - ID in openiam databasegraphId- - ID in graph database
-
updateGraphId
void updateGraphId(VertexType type, List<Tuple<String,String>> id2GraphIdMap)
Updates the underlying GraphID property in the database. This property is known only by JDBC, and not by hibernate, because only graph-specific actions require it, and the code that requires updating this propoerty will not necesssarily have access to Hibernate or JPA.- Parameters:
type- - type of entityid2GraphIdMap- - Tuple where key is openiam ID, and value is graph Database ID
-
selectGraphId
String selectGraphId(VertexType type, String openiamid)
-
getGraphVertexIds
Map<VertexType,Map<String,String>> getGraphVertexIds()
- Returns:
- - Returns a Map of
VertexType(User, Group, Role, etc) to the Map of OpenIAM Internal ID (key) to the graph ID (value)
-
updateEdge
void updateEdge(String membershipId, String rightId, String edgeId, VertexType parentType, VertexType childType)
Updates the EDGE_ID field in the database, based on the membership id and right id The parentType and childType VertexTypes will dictate which XREF table gets updated- Parameters:
membershipId-edgeId-
-
updateEdges
void updateEdges(List<RightAwareEdgeDatabaseTuple> rightAwareEdgeDatabaseTuple, VertexType parentType, VertexType childType)
Batch updates the necessary database right xref database table The parentType and childType VertexTypes will dictate which XREF table gets updated
-
updateEdgesWithoutRights
void updateEdgesWithoutRights(List<RightAwareEdgeDatabaseTuple> rightAwareEdgeDatabaseTuple, VertexType parentType, VertexType childType)
Batch updates the necessary database right xref database table The parentType and childType VertexTypes will dictate which XREF table gets updated
-
getExpiredEdgeIds
Map<EdgeVertexType,Set<String>> getExpiredEdgeIds(Date now)
-
nullOutEdges
void nullOutEdges(Map<EdgeVertexType,Set<String>> edgeIdentity2EdgeIdMap)
The name of this method is somewhat misleading. It updates the `EDGE_ID` column to `NULL`. The key ofedgeIdentity2EdgeIdMaptells us what type of edge it is Most likely, the argument into this method is the result of the call togetExpiredEdgeIds- Parameters:
edgeIdentity2EdgeIdMap-
-
-