Ignore:
Timestamp:
05/24/19 14:51:06 (5 years ago)
Author:
bln4
Message:

Implemented EncryptionPermission attribute.

EncryptionPermission is a triple. When specifying the value, if you do not specify the 2nd (group) or 3rd (other) then they default to permission level zero.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/AttributeUtils.java

    r1369 r1374  
    2828import org.expeditee.core.Font;
    2929import org.expeditee.core.Point;
     30import org.expeditee.encryption.items.EncryptionPermissionTriple;
    3031import org.expeditee.io.Conversion;
    3132import org.expeditee.items.DotType;
     
    147148                        Class<?>[] pPermission = { PermissionPair.class };
    148149                        Class<?>[] pDotType = { DotType.class };
     150                        Class<?>[] pEncPermission = { EncryptionPermissionTriple.class };
    149151                       
    150152                        _IgnoreSet = new LinkedList<String>();
     
    199201                        _FrameAttrib.put("EncryptionLabel", Frame.class.getMethod("getEncryptionLabel"),
    200202                                                                                                Frame.class.getMethod("setEncryptionLabel", pString));
     203                        _FrameAttrib.put("EncPermission",       Frame.class.getMethod("getEncryptionPermission"),
     204                                                                                                Frame.class.getMethod("setEncryptionPermission", pEncPermission));
    201205                       
    202206                       
     
    206210                        _FrameAttrib.alias("p",         "permission");
    207211                        _FrameAttrib.alias("enc",               "encryptionlabel");
     212                        _FrameAttrib.alias("encp",              "encpermission");
    208213                       
    209214                       
Note: See TracChangeset for help on using the changeset viewer.