> On Mar 6, 2016, at 1:59 PM, Chris Pike <[email protected]> wrote:
>
>
> Can you point me to where data is getting written in these methods? I'm only
> seeing reads.
final class RoleUtil implements ParentUtil
{
...
private static SimpleDirectedGraph<String, Relationship> loadGraph( String
contextId )
{
Hier inHier = new Hier( Hier.Type.ROLE );
inHier.setContextId( contextId );
LOG.info( "loadGraph initializing ROLE context [{}]",
inHier.getContextId() );
List<Graphable> descendants = null;
try
{
descendants = roleP.getAllDescendants( inHier.getContextId() );
}
catch ( SecurityException se )
{
LOG.info( "loadGraph caught SecurityException={}", se );
}
Hier hier = HierUtil.loadHier( contextId, descendants );
SimpleDirectedGraph<String, Relationship> graph;
graph = HierUtil.buildGraph( hier );
roleCache.put( getKey( contextId ), graph );
return graph;
}
above function takes the result set from ldap and loads into graph, which is
where the writes occur.