Esempio n. 1
0
 /**
  * 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);
 }
Esempio n. 2
0
 /**
  * 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);
 }
Esempio n. 3
0
 /**
  * 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);
 }