@SuppressWarnings("unused") private static Perms newPermsv2_0(boolean optional) { Perms perms = new Perms(); Perm p; perms.getPerm().add(p=new Perm()); p.setType("com.att.myns.myType"); p.setInstance("myInstance"); p.setAction("myAction"); p.getRoles().add("com.att.myns.myRole"); p.getRoles().add("com.att.myns.myRole2"); perms.getPerm().add(p=new Perm()); p.setType("com.att.myns.myOtherType"); p.setInstance("myInstance"); p.setAction("myOtherAction"); p.getRoles().add("com.att.myns.myRole"); p.getRoles().add("com.att.myns.myRole2"); return perms; }
@SuppressWarnings("unused") private static Perms newPermsv2_0(boolean optional) { Perms perms = new Perms(); Perm p; perms.getPerm().add(p=new Perm()); p.setType("com.att.myns.myType"); p.setInstance("myInstance"); p.setAction("myAction"); p.getRoles().add("com.att.myns.myRole"); p.getRoles().add("com.att.myns.myRole2"); perms.getPerm().add(p=new Perm()); p.setType("com.att.myns.myOtherType"); p.setInstance("myInstance"); p.setAction("myOtherAction"); p.getRoles().add("com.att.myns.myRole"); p.getRoles().add("com.att.myns.myRole2"); return perms; }
@SuppressWarnings("unused") private static Perm newPermv2_0(boolean optional) { Perm pr = new Perm(); pr.setType("com.att.myns.myType"); pr.setInstance("myInstance"); pr.setAction("myAction"); pr.getRoles().add("com.att.myns.myRole"); pr.getRoles().add("com.att.myns.myRole2"); pr.setDescription("This is my description, and I'm sticking with it"); if(optional) { pr.setDescription("Short and meaningful verbiage about the Permission"); } return pr; }
@SuppressWarnings("unused") private static Perm newPermv2_0(boolean optional) { Perm pr = new Perm(); pr.setType("com.att.myns.myType"); pr.setInstance("myInstance"); pr.setAction("myAction"); pr.getRoles().add("com.att.myns.myRole"); pr.getRoles().add("com.att.myns.myRole2"); pr.setDescription("This is my description, and I'm sticking with it"); if(optional) { pr.setDescription("Short and meaningful verbiage about the Permission"); } return pr; }