All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.internet2.middleware.grouper.abac.GrouperLoaderJexlScriptGroup Maven / Gradle / Ivy

There is a newer version: 5.13.5
Show newest version
package edu.internet2.middleware.grouper.abac;

import java.util.HashSet;
import java.util.Set;

import org.apache.commons.lang.StringUtils;

import edu.internet2.middleware.grouper.Group;
import edu.internet2.middleware.grouper.GroupFinder;
import edu.internet2.middleware.grouper.attr.assign.AttributeAssign;

public class GrouperLoaderJexlScriptGroup {

  private Group group;
  
  public Group getGroup() {
    if (group == null && !StringUtils.isBlank(groupId)) {
      group = GroupFinder.findByUuid(this.getGroupId(), true);
      this.setGroup(group);
    }
    return group;
  }

  public void setGroup(Group group) {
    this.group = group;
  }

  private AttributeAssign attributeAssign;
  
  public AttributeAssign getAttributeAssign() {
    return attributeAssign;
  }

  public void setAttributeAssign(AttributeAssign attributeAssign) {
    this.attributeAssign = attributeAssign;
  }

  private String groupId;

  public String getGroupId() {
    return groupId;
  }

  public void setGroupId(String groupId) {
    this.groupId = groupId;
  }
  
  private String attributeAssignId;

  public String getAttributeAssignId() {
    return attributeAssignId;
  }

  public void setAttributeAssignId(String attributeAssignId) {
    this.attributeAssignId = attributeAssignId;
  }
  
  private String script;

  public String getScript() {
    return script;
  }

  public boolean isIncludeInternalSubjectSourceForEntities() {
    return includeInternalSubjectSourceForEntities;
  }

  public void setIncludeInternalSubjectSourceForEntities(boolean includeInternalSubjectSourceForEntities) {
    this.includeInternalSubjectSourceForEntities = includeInternalSubjectSourceForEntities;
  }

  public void setScript(String script) {
    this.script = script;
  }
  
  private boolean includeInternalSubjectSourceForEntities;
  
  private Set scriptContainsGroupNames = new HashSet();

  public Set getScriptContainsGroupNames() {
    return scriptContainsGroupNames;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy