Package org.openiam.authmanager.graph
Class GraphOperations
- java.lang.Object
-
- org.openiam.authmanager.graph.GraphOperations
-
@Component public class GraphOperations extends Object
-
-
Constructor Summary
Constructors Constructor Description GraphOperations()
-
Method Summary
-
-
-
Method Detail
-
addVertex
public <T extends AbstractAuthorizationEntity,E extends KeyEntity> void addVertex(VertexType type, AuthorizationEntityRequest authorizationEntity, Map<GraphVariables,String> properties)
-
exists
public boolean exists(GraphCriteriaQuery query) throws NoGraphIdFoundException
- Throws:
NoGraphIdFoundException
-
getMembershipFromGraph
public <S extends AbstractAuthorizationEntity> Map<VertexType,Collection<? extends AbstractAuthorizationRight>> getMembershipFromGraph(GraphCriteriaQuery query) throws NoGraphIdFoundException
- Throws:
NoGraphIdFoundException
-
getInverseMembershipFromGraph
public <S extends AbstractAuthorizationEntity> Set<S> getInverseMembershipFromGraph(VertexType parentType, String childId, VertexType childType, String rightId) throws NoGraphIdFoundException
Starts at the ending point (i.e. Resource), and ends at the starting point (i.e. User) Returns allfromType
entitled (member of) the giventoType
with the given IDtoId
- Type Parameters:
T
-S
-E
-- Parameters:
fromType
- - type to end at (i.e. User)toId
- - Id of entity to start at (i.e. Resource)toType
- - Type to start at (i.e. Resource)rightId
- - the right ID that thefromType
has totoType
wrapperCreator
-vertexConverter
-date
-- Returns:
- Throws:
NoGraphIdFoundException
-
addEdges
@Transactional public void addEdges(SaveGraphEdgeRequest wrapper) throws NoGraphIdFoundException
- Throws:
NoGraphIdFoundException
-
deleteEdge
public void deleteEdge(String edgeId)
-
deleteVertex
public void deleteVertex(String vertexId)
-
deleteVerticies
public void deleteVerticies(VertexType type, Set<String> ids)
-
addEdges
public void addEdges(List<VertexAwareGraphEdgeToken> allEdges, Map<Tuple<VertexType,VertexType>,List<RightAwareEdgeDatabaseTuple>> rightAwareEdgeTuples)
-
deleteAllIndicies
public void deleteAllIndicies()
-
ping
public void ping()
-
-