Package com.sic.plugins.kpp.provider
Class KPPBaseKeychainsProvider
- java.lang.Object
-
- com.sic.plugins.kpp.provider.KPPBaseProvider
-
- com.sic.plugins.kpp.provider.KPPBaseKeychainsProvider
-
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
KPPKeychainsProvider
public abstract class KPPBaseKeychainsProvider extends KPPBaseProvider implements ExtensionPoint
An extension point for providingKPPKeychain
.- 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 KPPBaseKeychainsProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExtensionList<KPPBaseKeychainsProvider>
all()
All regsiteredKPPBaseKeychainsProvider
s.static DescriptorExtensionList<KPPKeychain,Descriptor<KPPKeychain>>
allKeychainDescriptors()
Get all the registeredKPPKeychain
descriptors.List<KPPKeychain>
getKeychains()
Get a list with all keychains.boolean
isKeychainFile(org.apache.commons.fileupload.FileItem item)
Checks if a given file item is a keychain file.protected void
merge()
Merge from file.void
update()
Update provider from config and content of upload folder.void
updateKeychainsFromSave(List<KPPKeychain> keychainsFromSave)
Call this method to update keychains from save action.-
Methods inherited from class com.sic.plugins.kpp.provider.KPPBaseProvider
checkAndCreateUploadFolder, getConfigXmlFile, getConfigXmlFileName, getFilesFromUploadDirectory, getUploadDirectoryPath, mergedObjects, save, upload
-
-
-
-
Method Detail
-
merge
protected void merge()
Description copied from class:KPPBaseProvider
Merge from file.- Specified by:
merge
in classKPPBaseProvider
-
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
-
getKeychains
public List<KPPKeychain> getKeychains()
Get a list with all keychains.- Returns:
- all keychains.
-
allKeychainDescriptors
public static DescriptorExtensionList<KPPKeychain,Descriptor<KPPKeychain>> allKeychainDescriptors()
Get all the registeredKPPKeychain
descriptors.- Returns:
- all the registered
KPPKeychain
descriptors.
-
all
public static ExtensionList<KPPBaseKeychainsProvider> all()
All regsiteredKPPBaseKeychainsProvider
s.
-
updateKeychainsFromSave
public void updateKeychainsFromSave(List<KPPKeychain> keychainsFromSave)
Call this method to update keychains from save action. The keychains from save action are merged into current keychains list. Then this list is sychnronized with the upload folder.
-
isKeychainFile
public boolean isKeychainFile(org.apache.commons.fileupload.FileItem item)
Checks if a given file item is a keychain file.- Returns:
- true, if it is a keychain file.
-
-