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 void
doSave(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
Action method if save button is clicked.void
doUploadFile(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
Action method if upload button is clicked.String
getDisplayName()
String
getErrorMessage()
Get error messageString
getIconFileName()
static KPPManagementLink
getInstance()
Gets the singletion instance.List<KPPKeychain>
getKeychains()
Get all keychainsList<KPPProvisioningProfile>
getProvisioningProfiles()
Get all provisioning profiles.String
getProvisioningProfilesPath()
Get the path to provisioning profiles on master or standalone jenkins instance.Object
getTarget()
String
getUrlName()
void
save()
-
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, NoSuchAlgorithmException
Action method if upload button is clicked.- Parameters:
req
- Requestrsp
- Response- Throws:
javax.servlet.ServletException
IOException
NoSuchAlgorithmException
-
doSave
public void doSave(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws javax.servlet.ServletException, IOException, NoSuchAlgorithmException
Action method if save button is clicked.- Parameters:
req
- Requestrsp
- Response- Throws:
javax.servlet.ServletException
IOException
NoSuchAlgorithmException
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
- Specified by:
getIconFileName
in classManagementLink
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
public String getUrlName()
- Specified by:
getUrlName
in interfaceAction
- Specified by:
getUrlName
in classManagementLink
-
getTarget
public Object getTarget()
- Specified by:
getTarget
in interfaceorg.kohsuke.stapler.StaplerProxy
-
save
public void save() throws IOException
- Specified by:
save
in interfaceSaveable
- Throws:
IOException
-
-