Package com.sic.plugins.kpp.provider
Class KPPBaseProvisioningProfilesProvider
- java.lang.Object
-
- com.sic.plugins.kpp.provider.KPPBaseProvider
-
- com.sic.plugins.kpp.provider.KPPBaseProvisioningProfilesProvider
-
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
KPPProvisioningProfilesProvider
public abstract class KPPBaseProvisioningProfilesProvider extends KPPBaseProvider implements ExtensionPoint
An extension point for providingKPPProvisioningProfile
- Author:
- Michael Bär
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class com.sic.plugins.kpp.provider.KPPBaseProvider
LOGGER
-
-
Constructor Summary
Constructors Constructor Description KPPBaseProvisioningProfilesProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExtensionList<KPPBaseProvisioningProfilesProvider>
all()
All regsiteredKPPBaseProvisioningProfilesProvider
s.static DescriptorExtensionList<KPPProvisioningProfile,Descriptor<KPPProvisioningProfile>>
allProvisioningProfileDescriptors()
Get all the registeredKPPKeychain
descriptors.List<KPPProvisioningProfile>
getProvisioningProfiles()
Get a list with all provisioning profiles.String
getProvisioningProfilesPath()
Get the path to the directory to store provisioning profiles on the master or standalone jenkins instance.static String
getUUIDFileName(String uuid)
Get the filename of the provisioning profile in the shape of uuid.mobileprovision.boolean
isMobileProvisionProfileFile(org.apache.commons.fileupload.FileItem item)
Checks if a given file item is a mobile provision profile file.protected void
merge()
Merge from file.static String
removeUUIDFromFileName(String fileName)
If the fileName contains the uuid at the end, so remove the uuid part.void
setProvisioningProfilesPath(String provisioningProfilesPath)
Set the path to the directory to store provisioning profiles on the master or standalone jenkins instance.void
update()
Update provider from config and content of upload folder.void
updateProvisioningProfilesFromSave(List<KPPProvisioningProfile> provisioningProfilesFromSave)
Call this method to update provisioning profiles from save action.-
Methods inherited from class com.sic.plugins.kpp.provider.KPPBaseProvider
checkAndCreateUploadFolder, getConfigXmlFile, getConfigXmlFileName, getFilesFromUploadDirectory, getUploadDirectoryPath, mergedObjects, save, upload
-
-
-
-
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 classKPPBaseProvider
-
merge
protected void merge()
Description copied from class:KPPBaseProvider
Merge from file.- Specified by:
merge
in classKPPBaseProvider
-
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.
-
allProvisioningProfileDescriptors
public static DescriptorExtensionList<KPPProvisioningProfile,Descriptor<KPPProvisioningProfile>> allProvisioningProfileDescriptors()
Get all the registeredKPPKeychain
descriptors.- Returns:
- all the registered
KPPKeychain
descriptors.
-
all
public static ExtensionList<KPPBaseProvisioningProfilesProvider> all()
All regsiteredKPPBaseProvisioningProfilesProvider
s.
-
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
-
-