Interface GitRepositoryRegisteredServiceLocator

All Known Implementing Classes:
DefaultGitRepositoryRegisteredServiceLocator, TypeAwareGitRepositoryRegisteredServiceLocator
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface GitRepositoryRegisteredServiceLocator
Since:
6.3.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final List<String>
    The File extensions.
    static final String
    The constant PATTERN_ACCEPTED_REPOSITORY_FILES to optionally be combined with root-directory prefix.
  • Method Summary

    Modifier and Type
    Method
    Description
    determine(org.apereo.cas.services.RegisteredService service, String extension)
    Determine file.
    default Optional<File>
    locate(org.apereo.cas.services.RegisteredService service)
    Locate file that is linked to the service.
    static File
    normalizeParentDirectory(File repositoryDirectory, String rootDirectory)
    Normalize parent directory file.
  • Field Details

    • FILE_EXTENSIONS

      static final List<String> FILE_EXTENSIONS
      The File extensions.
    • PATTEN_ACCEPTED_REPOSITORY_FILES

      static final String PATTEN_ACCEPTED_REPOSITORY_FILES
      The constant PATTERN_ACCEPTED_REPOSITORY_FILES to optionally be combined with root-directory prefix.
  • Method Details

    • determine

      File determine(org.apereo.cas.services.RegisteredService service, String extension)
      Determine file.
      Parameters:
      service - the service
      extension - the extension
      Returns:
      the file
    • locate

      default Optional<File> locate(org.apereo.cas.services.RegisteredService service)
      Locate file that is linked to the service.
      Parameters:
      service - the service
      Returns:
      the optional
    • normalizeParentDirectory

      static File normalizeParentDirectory(File repositoryDirectory, String rootDirectory) throws IOException
      Normalize parent directory file.
      Parameters:
      repositoryDirectory - the repository directory
      rootDirectory - the root directory
      Returns:
      the file
      Throws:
      IOException - the io exception