Class ScopeUtil


  • public class ScopeUtil
    extends Object
    The Class ScopeUtil.
    Author:
    Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it) Nov 5, 2018
    • Field Detail

      • logger

        public static final org.slf4j.Logger logger
    • Constructor Detail

      • ScopeUtil

        public ScopeUtil()
    • Method Detail

      • normalizeScope

        public static String normalizeScope​(String scope,
                                            String replaceSepartor)
        Normalize scope. Add the '/' as prefix and remove all input replaceSepartor
        Parameters:
        scope - the scope
        replaceSepartor - the string to replace with SCOPE_SEPARATOR}
        Returns:
        the normalized scope
      • getInfrastructureNameFromScope

        public static String getInfrastructureNameFromScope​(String scope)
                                                     throws Exception
        Gets the infrastructure name from scope.
        Parameters:
        scope - the scope
        Returns:
        the infrastructure name from scope
        Throws:
        Exception - the exception