Changeset a2a1555


Ignore:
Timestamp:
Mar 11, 2011 5:18:45 PM (8 years ago)
Author:
Ted Faber <faber@…>
Branches:
abac0-leak, abac0-mei, compt_changes, gec13, master, mei-id, mei-rt0-n, mei_rt0, mei_rt2, mei_rt2_fix_1, meiyap-rt1, meiyap1, rt2, tvf-new-xml
Children:
de63a31
Parents:
9394f1f
Message:

Make private protected to derive things.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/net/deterlab/abac/CredentialGraph.java

    r90f939f ra2a1555  
    1717 */
    1818public class CredentialGraph {
    19     private Graph<Role,Credential> g = null;
    20     private java.util.Set<Credential> derived_edges = new HashSet<Credential>();
    21     private Query pq;
    22     private boolean m_dirty;
     19    protected Graph<Role,Credential> g = null;
     20    protected java.util.Set<Credential> derived_edges = new HashSet<Credential>();
     21    protected Query pq;
     22    protected boolean m_dirty;
    2323
    2424    public CredentialGraph() {
     
    8888     * produces 0 new edges.
    8989     */
    90     private synchronized void derive_implied_edges() {
     90    protected synchronized void derive_implied_edges() {
    9191        // nothing to do on a clean graph
    9292        if (!m_dirty)
     
    9898        while (derive_links_iter() > 0)
    9999            ;
    100 
    101100        m_dirty = false;
    102101    }
     
    106105     * links added.
    107106     */
    108     private int derive_links_iter() {
     107    protected int derive_links_iter() {
    109108        int count = 0;
    110109
     
    167166     * exist.
    168167     */
    169     private boolean add_derived_edge(Role head, Role tail) {
     168    protected boolean add_derived_edge(Role head, Role tail) {
    170169        // edge exists: return false
    171170        if (g.findEdge(tail, head) != null)
     
    185184     * also cleared.
    186185     */
    187     private void clear_old_edges() {
     186    protected void clear_old_edges() {
    188187        for (Credential i: derived_edges)
    189188            g.removeEdge(i);
Note: See TracChangeset for help on using the changeset viewer.