Changeset 56ec930


Ignore:
Timestamp:
Mar 25, 2011 11:31:57 AM (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:
e36ea1d
Parents:
5129e3e
Message:

Remove roles. Scope graph stuff out of user hands.

File:
1 edited

Legend:

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

    rd69593c r56ec930  
    168168     * Add a credential to the graph.
    169169     */
    170     public void add_credential(Credential cred) {
     170    protected void add_credential(Credential cred) {
    171171        Role tail = cred.tail();
    172172        Role head = cred.head();
     
    192192     * Remove a credential from the graph.
    193193     */
    194     public void remove_credential(Credential cred) {
     194    protected void remove_credential(Credential cred) {
    195195        if (g.containsEdge(cred))
    196196            g.removeEdge(cred);
     
    201201     * Add a role w/o an edge
    202202     */
    203     public void add_vertex(Role v) {
     203    protected void add_vertex(Role v) {
    204204        if (!g.containsVertex(v)) {
    205205            g.addVertex(v);
     
    208208    }
    209209
    210     public void remove_vertex(Role v) {
     210    protected void remove_vertex(Role v) {
    211211        if (g.containsVertex(v)) {
    212212            g.removeVertex(v);
    213213            dirty = true;
    214214        }
    215     }
    216     public Collection<Role> roles() {
    217         return g.getVertices();
    218215    }
    219216
Note: See TracChangeset for help on using the changeset viewer.