Class NameScoping


  • @Deprecated
    public class NameScoping
    extends Object
    Deprecated.
    A helper class for name scoping
    • Constructor Detail

      • NameScoping

        public NameScoping()
        Deprecated.
    • Method Detail

      • getCommandNameWithoutGlobalPrefix

        public static String getCommandNameWithoutGlobalPrefix​(org.apache.felix.service.command.CommandSession session,
                                                               String key)
        Deprecated.
        Return the name of the command which can omit the global scope prefix if the command starts with the same prefix as the current application.
        Parameters:
        session - The command session.
        key - The command key.
        Returns:
        The command name without the global prefix.
      • isGlobalScope

        public static boolean isGlobalScope​(org.apache.felix.service.command.CommandSession session,
                                            String scope)
        Deprecated.
        Return true if the given scope is the global scope so that it can be hidden from help messages.
        Parameters:
        session - The command session.
        scope - The command scope.
        Returns:
        True if the scope is global, false else.
      • isMultiScopeMode

        public static boolean isMultiScopeMode​(org.apache.felix.service.command.CommandSession session)
        Deprecated.
        Return true if we are in multi-scope mode (the default) or if we are in single scope mode which means we avoid prefixing commands with their scope.
        Parameters:
        session - The command session.
        Returns:
        True if the command is multi-scoped, false else.