Class KPPBaseProvisioningProfilesProvider

    • Constructor Detail

      • KPPBaseProvisioningProfilesProvider

        public KPPBaseProvisioningProfilesProvider()
    • Method Detail

      • update

        public void update()
        Description copied from class: KPPBaseProvider
        Update provider from config and content of upload folder. If you override this method, call super after your implementation.
        Overrides:
        update in class KPPBaseProvider
      • getProvisioningProfiles

        public List<KPPProvisioningProfile> getProvisioningProfiles()
        Get a list with all provisioning profiles.
        Returns:
        list
      • getProvisioningProfilesPath

        public String getProvisioningProfilesPath()
        Get the path to the directory to store provisioning profiles on the master or standalone jenkins instance.
        Returns:
        path
      • setProvisioningProfilesPath

        public void setProvisioningProfilesPath​(String provisioningProfilesPath)
        Set the path to the directory to store provisioning profiles on the master or standalone jenkins instance.
      • updateProvisioningProfilesFromSave

        public void updateProvisioningProfilesFromSave​(List<KPPProvisioningProfile> provisioningProfilesFromSave)
        Call this method to update provisioning profiles from save action. The provisioning profiles from save action are merged into current provisioning profiles list. Then this list is sychnronized with the upload folder.
      • isMobileProvisionProfileFile

        public boolean isMobileProvisionProfileFile​(org.apache.commons.fileupload.FileItem item)
        Checks if a given file item is a mobile provision profile file.
        Returns:
        true, if it is a mobile provision profile file.
      • removeUUIDFromFileName

        public static String removeUUIDFromFileName​(String fileName)
        If the fileName contains the uuid at the end, so remove the uuid part.
        Returns:
        fileName without uuid
      • getUUIDFileName

        public static String getUUIDFileName​(String uuid)
        Get the filename of the provisioning profile in the shape of uuid.mobileprovision.
        Returns:
        filename