/** * constructor for group path code * * @param field * @param theOwnerGroup */ public MembershipPathNode(Field field, Group theOwnerGroup) { if (field.isGroupListField()) { this.setMembershipOwnerType(MembershipOwnerType.list); } else if (field.isGroupAccessField()) { this.setMembershipOwnerType(MembershipOwnerType.groupPrivilege); } else { throw new RuntimeException("Not expecting field type: " + field); } this.setOwnerGroup(theOwnerGroup); }
/** * constructor for attributeDef path code * * @param field * @param theOwnerAttributeDef */ public MembershipPathNode(Field field, AttributeDef theOwnerAttributeDef) { if (field.isAttributeDefListField()) { this.setMembershipOwnerType(MembershipOwnerType.attributeDefPrivilege); } else { throw new RuntimeException("Not expecting field type: " + field); } this.setOwnerAttributeDef(theOwnerAttributeDef); }
/** * constructor for stem path code * * @param field * @param theOwnerStem */ public MembershipPathNode(Field field, Stem theOwnerStem) { if (field.isStemListField()) { this.setMembershipOwnerType(MembershipOwnerType.stemPrivilege); } else { throw new RuntimeException("Not expecting field type: " + field); } this.setOwnerStem(theOwnerStem); }