Package com.sic.plugins.kpp
Class KPPManagementLink
- java.lang.Object
-
- hudson.model.ManagementLink
-
- com.sic.plugins.kpp.KPPManagementLink
-
- All Implemented Interfaces:
ExtensionPoint,Action,ModelObject,Saveable,org.kohsuke.stapler.StaplerProxy
@Extension public class KPPManagementLink extends ManagementLink implements org.kohsuke.stapler.StaplerProxy, Saveable
Manages the main plugin configuration page for uploading of provisioning profiles and keychains.- Author:
- Michael Bär
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.ManagementLink
ManagementLink.Category
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.ManagementLink
LIST
-
-
Constructor Summary
Constructors Constructor Description KPPManagementLink()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoSave(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)Action method if save button is clicked.voiddoUploadFile(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)Action method if upload button is clicked.StringgetDisplayName()StringgetErrorMessage()Get error messageStringgetIconFileName()static KPPManagementLinkgetInstance()Gets the singletion instance.List<KPPKeychain>getKeychains()Get all keychainsList<KPPProvisioningProfile>getProvisioningProfiles()Get all provisioning profiles.StringgetProvisioningProfilesPath()Get the path to provisioning profiles on master or standalone jenkins instance.ObjectgetTarget()StringgetUrlName()voidsave()-
Methods inherited from class hudson.model.ManagementLink
all, getCategory, getCategoryName, getDescription, getRequiredPermission, getRequiresConfirmation, getRequiresPOST
-
-
-
-
Method Detail
-
getInstance
public static KPPManagementLink getInstance()
Gets the singletion instance.- Returns:
- the singletion instance.
-
getErrorMessage
public String getErrorMessage()
Get error message- Returns:
- error message
-
getKeychains
public List<KPPKeychain> getKeychains()
Get all keychains- Returns:
- all keychains.
-
getProvisioningProfiles
public List<KPPProvisioningProfile> getProvisioningProfiles()
Get all provisioning profiles.- Returns:
- all provisioning profiles
-
getProvisioningProfilesPath
public String getProvisioningProfilesPath()
Get the path to provisioning profiles on master or standalone jenkins instance.- Returns:
- path
-
doUploadFile
public void doUploadFile(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws javax.servlet.ServletException, IOException, NoSuchAlgorithmExceptionAction method if upload button is clicked.- Parameters:
req- Requestrsp- Response- Throws:
javax.servlet.ServletExceptionIOExceptionNoSuchAlgorithmException
-
doSave
public void doSave(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws javax.servlet.ServletException, IOException, NoSuchAlgorithmExceptionAction method if save button is clicked.- Parameters:
req- Requestrsp- Response- Throws:
javax.servlet.ServletExceptionIOExceptionNoSuchAlgorithmException
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileNamein interfaceAction- Specified by:
getIconFileNamein classManagementLink
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
public String getUrlName()
- Specified by:
getUrlNamein interfaceAction- Specified by:
getUrlNamein classManagementLink
-
getTarget
public Object getTarget()
- Specified by:
getTargetin interfaceorg.kohsuke.stapler.StaplerProxy
-
save
public void save() throws IOException- Specified by:
savein interfaceSaveable- Throws:
IOException
-
-