Class KeyStorageContextProvider

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.String> authResForPath​(org.rundeck.storage.api.Path path)
      Map containing path and name given a path
      java.util.Set<com.dtolabs.rundeck.core.authorization.Attribute> environmentForPath​(org.rundeck.storage.api.Path path)
      Generate the environment for a path, based on the convention that /project/name/* maps to a project called "name", and anything else is within the application environment.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KeyStorageContextProvider

        public KeyStorageContextProvider()
    • Method Detail

      • authResForPath

        public java.util.Map<java.lang.String,​java.lang.String> authResForPath​(org.rundeck.storage.api.Path path)
        Map containing path and name given a path
        Specified by:
        authResForPath in interface AuthStorageContextProvider
        Parameters:
        path - path
        Returns:
        map
      • environmentForPath

        public java.util.Set<com.dtolabs.rundeck.core.authorization.Attribute> environmentForPath​(org.rundeck.storage.api.Path path)
        Generate the environment for a path, based on the convention that /project/name/* maps to a project called "name", and anything else is within the application environment.
        Specified by:
        environmentForPath in interface AuthStorageContextProvider
        Parameters:
        path - path
        Returns:
        authorization environment: a project environment if the path matches /project/name/*, otherwise the application environment