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

edu.internet2.middleware.grouper.app.gsh.template.GshTemplateRequireFolderPrivilege Maven / Gradle / Ivy

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

import edu.internet2.middleware.grouper.privs.NamingPrivilege;
import edu.internet2.middleware.grouper.privs.Privilege;
import edu.internet2.middleware.grouper.util.GrouperUtil;

public enum GshTemplateRequireFolderPrivilege {

  admin {

    @Override
    public Privilege getPrivilege() {
      return NamingPrivilege.STEM_ADMIN;
    }
  }, 
  
  create {

    @Override
    public Privilege getPrivilege() {
      return NamingPrivilege.CREATE;
    }
  }, 
  
  stemAttrRead {

    @Override
    public Privilege getPrivilege() {
      return NamingPrivilege.STEM_ATTR_READ;
    }
  }, 
  
  stemView {

    @Override
    public Privilege getPrivilege() {
      return NamingPrivilege.STEM_VIEW;
    }
  }, 
  
  stemAttrUpdate {

    @Override
    public Privilege getPrivilege() {
      return NamingPrivilege.STEM_ATTR_UPDATE;
    }
    
  };
  
  /**
   * do a case-insensitive matching
   * 
   * @param string
   * @param exceptionOnNotFound true to throw exception if method not found
   * @return the enum or null or exception if not found
   */
  public static GshTemplateRequireFolderPrivilege valueOfIgnoreCase(String string, boolean exceptionOnNotFound) {
    return GrouperUtil.enumValueOfIgnoreCase(GshTemplateRequireFolderPrivilege.class, string, exceptionOnNotFound);
  }
  
  
  public abstract Privilege getPrivilege();
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy