Class AuthManagerDAOImpl

    • Constructor Detail

      • AuthManagerDAOImpl

        public AuthManagerDAOImpl()
    • Method Detail

      • updateGraphId

        public void updateGraphId​(VertexType type,
                                  String id,
                                  String graphId)
        Description copied from interface: AuthManagerDAO
        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.
        Specified by:
        updateGraphId in interface AuthManagerDAO
        Parameters:
        type - - type of entity
        id - - ID in openiam database
        graphId - - ID in graph database
      • updateGraphId

        public void updateGraphId​(VertexType type,
                                  List<Tuple<String,​String>> id2GraphIdMap)
        Description copied from interface: AuthManagerDAO
        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.
        Specified by:
        updateGraphId in interface AuthManagerDAO
        Parameters:
        type - - type of entity
        id2GraphIdMap - - Tuple where key is openiam ID, and value is graph Database ID
      • updateEdge

        public void updateEdge​(String membershipId,
                               String rightId,
                               String edgeId,
                               VertexType parentType,
                               VertexType childType)
        Description copied from interface: AuthManagerDAO
        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
        Specified by:
        updateEdge in interface AuthManagerDAO
      • nullOutEdges

        public void nullOutEdges​(Map<EdgeVertexType,​Set<String>> edgeIdentity2EdgeIdMap)
        Description copied from interface: AuthManagerDAO
        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
        Specified by:
        nullOutEdges in interface AuthManagerDAO