001/*- 002 * #%L 003 * Smile CDR - CDR 004 * %% 005 * Copyright (C) 2016 - 2024 Smile CDR, Inc. 006 * %% 007 * All rights reserved. 008 * #L% 009 */ 010package ca.cdr.api.model.enm.appgallery; 011 012import jakarta.annotation.Nonnull; 013 014import java.util.Locale; 015 016public enum AGScopeType { 017 REGULAR, 018 AUTO_GRANT, 019 AUTO_APPROVE; 020 021 @Nonnull 022 public static AGScopeType find(String theType) { 023 try { 024 return valueOf(theType.toUpperCase(Locale.ROOT)); 025 } catch (Exception e) { 026 return AGScopeType.REGULAR; 027 } 028 } 029}