hudson.plugins.sfee
Class SourceForgeSite
java.lang.Object
hudson.model.JobProperty<hudson.model.AbstractProject<?,?>>
hudson.plugins.sfee.SourceForgeSite
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.model.JobProperty<?>>, hudson.tasks.BuildStep, Serializable
public class SourceForgeSite
- extends hudson.model.JobProperty<hudson.model.AbstractProject<?,?>>
- implements Serializable
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from interface hudson.tasks.BuildStep |
hudson.tasks.BuildStep.PublisherList |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Fields inherited from class hudson.model.JobProperty |
owner |
| Fields inherited from interface hudson.tasks.BuildStep |
BUILDERS, PUBLISHERS |
|
Method Summary |
String |
createRelease(String packageId,
String releaseName,
String description,
String status,
String maturity)
|
String |
createSession(String userName,
String password)
|
List<ArtifactDetailSoapRow> |
findArtifactsResolvedInRelease(String releaseTitle,
String projectId)
|
hudson.model.JobPropertyDescriptor |
getDescriptor()
|
FileStorageAppSoap |
getFileStorageApp()
|
FrsAppSoap |
getFrsApp()
|
String |
getFrsId(String releaseId,
String fileName)
|
String |
getPassword()
|
ProjectSoapRow[] |
getProjects()
returns all projects |
ProjectSoapRow[] |
getProjects(String sessionId)
returns projects for user logged in with this session id |
String |
getReleaseId(String packageId,
String name)
Updates the title of the release with the given name. |
PackageSoapRow[] |
getReleasePackages(String projectId)
|
String |
getSessionId()
|
CollabNetSoap |
getSfApp()
|
String |
getSite()
|
TrackerAppSoap |
getTrackerApp()
|
TrackerSoapRow[] |
getTrackers(String projectId)
|
String |
getURL(String artifactId)
|
UserSoapDO |
getUserDetails(String username)
|
String |
getUserName()
|
UserSoapRow[] |
getUsers()
|
void |
obsoleteRelease(String releaseId)
|
void |
setPassword(String password)
|
void |
setUserName(String userName)
|
void |
updateRelease(String releaseId,
String maturity,
String status)
|
String |
updateReleaseName(String packageId,
String oldName,
String newName)
Updates the title of the release with the given name. |
String |
uploadFileForRelease(String releaseId,
String name,
javax.activation.DataHandler dataHandler,
boolean forceUpdate)
|
String |
uploadFileForRelease(String releaseId,
String name,
URL sourceURL,
boolean forceUpdate)
|
| Methods inherited from class hudson.model.JobProperty |
getJobAction, getJobActions, getJobOverrides, getProjectAction, getProjectActions, getRequiredMonitorService, getSubTasks, perform, prebuild, setOwner |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DESCRIPTOR
@Extension
public static final SourceForgeSite.DescriptorImpl DESCRIPTOR
SourceForgeSite
@DataBoundConstructor
public SourceForgeSite(String site,
String userName,
String password)
SourceForgeSite
public SourceForgeSite()
getSite
public String getSite()
getProjects
public ProjectSoapRow[] getProjects()
- returns all projects
- Returns:
getSessionId
public String getSessionId()
getDescriptor
public hudson.model.JobPropertyDescriptor getDescriptor()
- Specified by:
getDescriptor in interface hudson.model.Describable<hudson.model.JobProperty<?>>- Overrides:
getDescriptor in class hudson.model.JobProperty<hudson.model.AbstractProject<?,?>>
getFrsApp
public FrsAppSoap getFrsApp()
getSfApp
public CollabNetSoap getSfApp()
getTrackerApp
public TrackerAppSoap getTrackerApp()
getURL
public String getURL(String artifactId)
getFileStorageApp
public FileStorageAppSoap getFileStorageApp()
updateReleaseName
public String updateReleaseName(String packageId,
String oldName,
String newName)
throws NoSuchObjectFault,
InvalidSessionFault,
SystemFault,
PermissionDeniedFault,
RemoteException
- Updates the title of the release with the given name.
- Returns:
- the id of the release that was changed, or null is no such
release
- Throws:
RemoteException
PermissionDeniedFault
SystemFault
InvalidSessionFault
NoSuchObjectFault
getReleaseId
public String getReleaseId(String packageId,
String name)
throws NoSuchObjectFault,
InvalidSessionFault,
SystemFault,
PermissionDeniedFault,
RemoteException
- Updates the title of the release with the given name.
- Returns:
- the id of the release that was changed, or null is no such
release
- Throws:
RemoteException
PermissionDeniedFault
SystemFault
InvalidSessionFault
NoSuchObjectFault
findArtifactsResolvedInRelease
public List<ArtifactDetailSoapRow> findArtifactsResolvedInRelease(String releaseTitle,
String projectId)
throws InvalidFilterFault,
NoSuchObjectFault,
InvalidSessionFault,
SystemFault,
PermissionDeniedFault,
RemoteException
- Throws:
InvalidFilterFault
NoSuchObjectFault
InvalidSessionFault
SystemFault
PermissionDeniedFault
RemoteException
createRelease
public String createRelease(String packageId,
String releaseName,
String description,
String status,
String maturity)
throws IllegalArgumentFault,
NoSuchObjectFault,
InvalidSessionFault,
SystemFault,
PermissionDeniedFault,
RemoteException
- Throws:
IllegalArgumentFault
NoSuchObjectFault
InvalidSessionFault
SystemFault
PermissionDeniedFault
RemoteException
getFrsId
public String getFrsId(String releaseId,
String fileName)
throws InvalidSessionFault,
SystemFault,
RemoteException
- Throws:
InvalidSessionFault
SystemFault
RemoteException
uploadFileForRelease
public String uploadFileForRelease(String releaseId,
String name,
URL sourceURL,
boolean forceUpdate)
throws InvalidSessionFault,
SystemFault,
RemoteException
- Throws:
InvalidSessionFault
SystemFault
RemoteException
uploadFileForRelease
public String uploadFileForRelease(String releaseId,
String name,
javax.activation.DataHandler dataHandler,
boolean forceUpdate)
throws InvalidSessionFault,
SystemFault,
RemoteException
- Throws:
InvalidSessionFault
SystemFault
RemoteException
getReleasePackages
public PackageSoapRow[] getReleasePackages(String projectId)
throws NoSuchObjectFault,
InvalidSessionFault,
SystemFault,
PermissionDeniedFault,
RemoteException
- Throws:
NoSuchObjectFault
InvalidSessionFault
SystemFault
PermissionDeniedFault
RemoteException
getTrackers
public TrackerSoapRow[] getTrackers(String projectId)
throws NoSuchObjectFault,
InvalidSessionFault,
SystemFault,
PermissionDeniedFault,
RemoteException
- Throws:
NoSuchObjectFault
InvalidSessionFault
SystemFault
PermissionDeniedFault
RemoteException
getUsers
public UserSoapRow[] getUsers()
throws SearchQuerySyntaxFault,
IllegalArgumentFault,
InvalidSessionFault,
SystemFault,
PermissionDeniedFault,
RemoteException
- Throws:
SearchQuerySyntaxFault
IllegalArgumentFault
InvalidSessionFault
SystemFault
PermissionDeniedFault
RemoteException
getUserName
public String getUserName()
setUserName
public void setUserName(String userName)
getPassword
public String getPassword()
setPassword
public void setPassword(String password)
createSession
public String createSession(String userName,
String password)
getUserDetails
public UserSoapDO getUserDetails(String username)
throws InvalidSessionFault,
NoSuchObjectFault,
IllegalArgumentFault,
RemoteException
- Throws:
InvalidSessionFault
NoSuchObjectFault
IllegalArgumentFault
RemoteException
getProjects
public ProjectSoapRow[] getProjects(String sessionId)
throws InvalidSessionFault,
SystemFault,
RemoteException
- returns projects for user logged in with this session id
- Parameters:
sessionId -
- Returns:
-
- Throws:
RemoteException
SystemFault
InvalidSessionFault
updateRelease
public void updateRelease(String releaseId,
String maturity,
String status)
throws NoSuchObjectFault,
InvalidSessionFault,
SystemFault,
PermissionDeniedFault,
RemoteException
- Throws:
NoSuchObjectFault
InvalidSessionFault
SystemFault
PermissionDeniedFault
RemoteException
obsoleteRelease
public void obsoleteRelease(String releaseId)
throws VersionMismatchFault,
IllegalArgumentFault,
NoSuchObjectFault,
InvalidSessionFault,
SystemFault,
PermissionDeniedFault,
RemoteException
- Throws:
VersionMismatchFault
IllegalArgumentFault
NoSuchObjectFault
InvalidSessionFault
SystemFault
PermissionDeniedFault
RemoteException
Copyright © 2004-2012 Hudson. All Rights Reserved.