Class KPPBaseProvider

    • Field Detail

      • LOGGER

        protected static final Logger LOGGER
    • Constructor Detail

      • KPPBaseProvider

        public KPPBaseProvider()
        Constructor
    • Method Detail

      • checkAndCreateUploadFolder

        protected void checkAndCreateUploadFolder()
        Check if upload folder exists. If folder not exists than create the folder.
      • getUploadDirectoryPath

        public String getUploadDirectoryPath()
        Get the default Upload Directory Path for Keychains and Provisioning Profiles files.
        Returns:
      • getConfigXmlFile

        public XmlFile getConfigXmlFile()
        Get the provider config file.
        Returns:
      • getConfigXmlFileName

        public String getConfigXmlFileName()
        Get provider config xml filename.
        Returns:
        filename
      • save

        public final void save()
        Save provider config xml.
      • update

        public void update()
        Update provider from config and content of upload folder. If you override this method, call super after your implementation.
      • getFilesFromUploadDirectory

        public File[] getFilesFromUploadDirectory​(String fileExtension)
        Get all files filtered by filetype from upload directory.
        Parameters:
        fileExtension - , e.g. ".keychain"
        Returns:
        array with all files
      • mergedObjects

        protected <T> List<T> mergedObjects​(List<T> objectsFromXml,
                                            List<T> objectsFromFolder)
        Merge two lists of objects.
        Type Parameters:
        T - type
        Parameters:
        objectsFromXml - objects loaded from xml
        objectsFromFolder - objects loaded from upload folder
        Returns:
        merged objects
      • merge

        protected abstract void merge()
        Merge from file.