edu.internet2.middleware.grouper.app.gsh.template.GshTemplateRequireFolderPrivilege Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grouper Show documentation
Show all versions of grouper Show documentation
Internet2 Groups Management Toolkit
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