Interface AuthManagerDAO

    • 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 entity
        id - - ID in openiam database
        graphId - - 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 entity
        id2GraphIdMap - - Tuple where key is openiam ID, and value is graph Database ID
      • 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
      • 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 of edgeIdentity2EdgeIdMap tells us what type of edge it is Most likely, the argument into this method is the result of the call to getExpiredEdgeIds
        Parameters:
        edgeIdentity2EdgeIdMap -