|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.mavenplugins.sourceforge.FileReleaseSystemBean
Bean used for accessing the File Release System on Sourceforge.
| Constructor Summary | |
FileReleaseSystemBean()
Constructor for FileReleaseSystemBean |
|
| Method Summary | |
protected boolean |
canCreatePackage(org.w3c.dom.Document doc)
|
protected boolean |
checkLoginResponse(org.w3c.dom.Document doc)
|
protected int |
createPackage()
Creates a new package |
protected int |
createRelease(int packageId)
Creates a new release for the package |
protected org.w3c.dom.Document |
defineFileInformation(int packageId,
int releaseId,
int fileId,
java.lang.String fileName)
Defines the file information like plateform support and file type |
void |
execute()
|
java.io.File |
getChangeLogFile()
Gets the changeLogFile. |
protected int |
getCreatedReleaseId(org.w3c.dom.Document doc)
|
protected int |
getFileId(org.w3c.dom.Document doc,
java.lang.String fileName)
Gets the file id for the given file |
java.util.List |
getFiles()
Gets the files. |
java.lang.String |
getPackage()
Gets the package. |
java.lang.String |
getPackageDescription()
Gets the packageDescription. |
protected int |
getPackageId(org.w3c.dom.Document doc)
Locates the package id in the page if it exists, else returns -1 |
java.lang.String |
getProxyHost()
Gets the proxyHost. |
java.lang.String |
getProxyNTDomain()
Gets the proxyNTDomain. |
java.lang.String |
getProxyPassword()
Gets the proxyPassword. |
int |
getProxyPort()
Gets the proxyPort. |
java.lang.String |
getProxyUserName()
Gets the proxyUserName. |
java.lang.String |
getRelease()
Gets the release. |
protected int |
getReleaseId(org.w3c.dom.Document doc)
Locates the release id in he page if it exists, else returns -1 |
java.io.File |
getReleaseNotesFile()
Gets the releaseNotesFile. |
int |
getSfGroupId()
Gets the sfGroupId. |
java.lang.String |
getSfPassword()
Gets the sfPassword. |
java.lang.String |
getSfUserName()
Gets the sfUserName. |
boolean |
isSubmitNewsItem()
Gets the submitNewsItem. |
protected void |
login()
|
protected org.w3c.dom.Document |
selectUploadedFiles(int packageId,
int releaseId)
Select our uploaded files to include in the file release page |
protected void |
sendEmailConfirmation(int packageId,
int releaseId)
Send the email confirmation to the users monitoring the package |
void |
setChangeLogFile(java.io.File changeLogFile)
Sets the changeLogFile. |
void |
setFiles(java.util.List files)
Sets the files. |
void |
setFilesIterator(java.util.Iterator iterator)
Sets the files. |
void |
setPackage(java.lang.String package1)
Sets the package. |
void |
setPackageDescription(java.lang.String packageDescription)
Sets the packageDescription. |
void |
setProxyHost(java.lang.String proxyHost)
Sets the proxyHost. |
void |
setProxyNTDomain(java.lang.String proxyNTDomain)
Sets the proxyNTDomain. |
void |
setProxyPassword(java.lang.String proxyPassword)
Sets the proxyPassword. |
void |
setProxyPort(int proxyPort)
Sets the proxyPort. |
void |
setProxyUserName(java.lang.String proxyUserName)
Sets the proxyUserName. |
void |
setRelease(java.lang.String release)
Sets the release. |
void |
setReleaseNotesFile(java.io.File releaseNotesFile)
Sets the releaseNotesFile. |
void |
setSfGroupId(int sfGroupId)
Sets the sfGroupId. |
void |
setSfPassword(java.lang.String sfPassword)
Sets the sfPassword. |
void |
setSfUserName(java.lang.String sfUserName)
Sets the sfUserName. |
void |
setSubmitNewsItem(boolean submitNewsItem)
Sets the submitNewsItem. |
protected void |
submitNewsItem()
Submit a news item informing users about the release |
protected org.w3c.dom.Document |
uploadNotes(int packageId,
int releaseId)
Upload the changes and release notes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FileReleaseSystemBean()
| Method Detail |
public java.util.List getFiles()
public void setFiles(java.util.List files)
files - The files to set.public void setFilesIterator(java.util.Iterator iterator)
public int getSfGroupId()
public void setSfGroupId(int sfGroupId)
sfGroupId - The sfGroupId to set.public java.lang.String getSfUserName()
public void setSfUserName(java.lang.String sfUserName)
sfUserName - The sfUserName to set.public java.lang.String getSfPassword()
public void setSfPassword(java.lang.String sfPassword)
sfPassword - The sfPassword to set.public java.lang.String getPackage()
public void setPackage(java.lang.String package1)
package1 - The package to set.public java.lang.String getRelease()
public void setRelease(java.lang.String release)
release - The release to set.public java.io.File getChangeLogFile()
public void setChangeLogFile(java.io.File changeLogFile)
changeLogFile - The changeLogFile to set.public java.io.File getReleaseNotesFile()
public void setReleaseNotesFile(java.io.File releaseNotesFile)
releaseNotesFile - The releaseNotesFile to set.public boolean isSubmitNewsItem()
public void setSubmitNewsItem(boolean submitNewsItem)
submitNewsItem - The submitNewsItem to set.public java.lang.String getPackageDescription()
public void setPackageDescription(java.lang.String packageDescription)
public java.lang.String getProxyHost()
public void setProxyHost(java.lang.String proxyHost)
proxyHost - The proxyHost to set.public int getProxyPort()
public void setProxyPort(int proxyPort)
proxyPort - The proxyPort to set.public java.lang.String getProxyUserName()
public void setProxyUserName(java.lang.String proxyUserName)
proxyUserName - The proxyUserName to set.public java.lang.String getProxyPassword()
public void setProxyPassword(java.lang.String proxyPassword)
proxyPassword - The proxyPassword to set.public java.lang.String getProxyNTDomain()
public void setProxyNTDomain(java.lang.String proxyNTDomain)
proxyNTDomain - The proxyNTDomain to set.
public void execute()
throws java.lang.Exception
java.lang.Exception
protected void login()
throws java.lang.Exception
java.lang.Exceptionprotected boolean checkLoginResponse(org.w3c.dom.Document doc)
protected int getPackageId(org.w3c.dom.Document doc)
doc - The html page Admin: FRS: Packages
protected boolean canCreatePackage(org.w3c.dom.Document doc)
doc - The html page Admin: FRS: Packages
protected int createPackage()
throws java.lang.Exception
java.lang.Exceptionprotected int getReleaseId(org.w3c.dom.Document doc)
doc - The html page Admin: FRS: Releases
protected int createRelease(int packageId)
throws java.lang.Exception
java.lang.Exception
protected int getCreatedReleaseId(org.w3c.dom.Document doc)
throws java.lang.NumberFormatException
java.lang.NumberFormatException
protected org.w3c.dom.Document uploadNotes(int packageId,
int releaseId)
throws java.lang.Exception
packageId - The package idreleaseId - The release id
java.lang.Exception
protected org.w3c.dom.Document selectUploadedFiles(int packageId,
int releaseId)
throws java.lang.Exception
packageId - The package idreleaseId - The release id
java.lang.Exception
protected int getFileId(org.w3c.dom.Document doc,
java.lang.String fileName)
throws java.lang.Exception
doc - The html page Admin: FRS: ReleasesfileName - The file name
java.lang.Exception
protected org.w3c.dom.Document defineFileInformation(int packageId,
int releaseId,
int fileId,
java.lang.String fileName)
throws java.lang.Exception
packageId - The package idreleaseId - The release idfileId - The file idfileName - The file name
java.lang.Exception
protected void sendEmailConfirmation(int packageId,
int releaseId)
throws org.apache.commons.httpclient.URIException
packageId - The package idreleaseId - The release id
org.apache.commons.httpclient.URIException
protected void submitNewsItem()
throws java.lang.Exception
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||