|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kohsuke.jnt.JNProject
public final class JNProject
Java.net project.
Comparisons are based on their project names, so one can compare
two JNProject
s from different JavaNet
s.
Method Summary | |
---|---|
void |
approve()
Approves the project. |
int |
compareTo(Object o)
|
void |
disapprove(String reason)
Disapproves the project. |
boolean |
equals(Object o)
|
boolean |
exists()
|
JavaNet |
getConnection()
Returns the JavaNet object that this project belongs to. |
JNFileFolder |
getFolder(String folderPathName)
Obtains the top folder in the file sharing section. |
JNForums |
getForums()
Obtains the object that represents the discussion forums section. |
JNIssueTracker |
getIssueTracker()
Obtains the object that represents the issue tracker section. |
JNMailingLists |
getMailingLists()
Accesses the membership section of the project. |
JNMembership |
getMembership()
Accesses the membership section of the project. |
String |
getName()
Gets the name of this project. |
JNNewsItems |
getNewsItems()
Obtains the object that represents the news item section. |
String |
getOwnerAlias()
Returns the e-mail alias connected to all the current owners of this project. |
JNProject |
getOwnerCommunity()
Gets the community project to which this project directly/indirectly belongs. |
String |
getOwnerMessage()
Gets the owner's message. |
String |
getOwnerMessage2()
Gets the owner's message. |
Set<JNUser> |
getOwners()
Returns a set of JNUser s that represent project owners. |
JNProject |
getParent()
Gets the parent project. |
JNFileFolder |
getRootFolder()
Returns the top folder in the document & files section. |
Set<JNProject> |
getSubProjects()
Returns a set of JNProject objects that represent the sub-projects
of this project. |
String |
getSummary()
Gets the one-line summary of this project. |
URL |
getURL()
Returns the URL of the project top page. |
JNVCS |
getVersionControl()
Gets the version control system this project uses. |
int |
hashCode()
|
boolean |
isCommunity()
Returns true if this project is a community project. |
String |
setOwnerMessage(String msg)
Sets the owner's message. |
void |
setParent(JNProject newParent)
Moves this project under the specified project. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public JavaNet getConnection()
JavaNet
object that this project belongs to.
public String getName()
public JNVCS getVersionControl() throws ProcessingException
ProcessingException
public String getSummary() throws ProcessingException
ProcessingException
public String getOwnerMessage() throws ProcessingException
Generally speaking, this library cannot obtain the exact char-by-char representation of such HTML (for example, whitespace between attributes are lost.)
ProcessingException
getOwnerMessage2()
public String getOwnerMessage2() throws ProcessingException
This is an admin-only operation, but unlike getOwnerMessage()
,
this method returns the exact char-by-char owner's message as currently set.
ProcessingException
getOwnerMessage()
public String setOwnerMessage(String msg) throws ProcessingException
This is an admin-only operation. When set, the owner's message is displayed in the project top page.
msg
- null to reset the owner message.
Otherwise the string will be set as the owner's message.
Can contain HTML.
ProcessingException
public JNProject getParent() throws ProcessingException
ProcessingException
public void setParent(JNProject newParent) throws ProcessingException
This is a priviledged operation.
ProcessingException
public JNProject getOwnerCommunity() throws ProcessingException
ProcessingException
public boolean isCommunity() throws ProcessingException
Certain java.net projects are designated as "community" projects (e.g., games.dev.java.net, java-ws-xml.dev.java.net)
ProcessingException
public Set<JNUser> getOwners() throws ProcessingException
JNUser
s that represent project owners.
ProcessingException
getOwners()
public String getOwnerAlias()
This alias is maintained by java.net. It is always "owner@PROJECT.dev.java.net"
getOwners()
public Set<JNProject> getSubProjects() throws ProcessingException
JNProject
objects that represent the sub-projects
of this project.
Note that depending on the permission of the current account used to log in to the system, you might not be able to see all the sub-projects
ProcessingException
public boolean exists() throws ProcessingException
ProcessingException
public JNMembership getMembership()
public JNMailingLists getMailingLists()
public URL getURL()
public JNFileFolder getFolder(String folderPathName) throws ProcessingException
folderPathName
- String like "/folder1/subfolder"
ProcessingException
public JNFileFolder getRootFolder()
public JNNewsItems getNewsItems()
public JNForums getForums()
public JNIssueTracker getIssueTracker()
public void approve() throws ProcessingException
This is an admin-only operation.
ProcessingException
public void disapprove(String reason) throws ProcessingException
This is an admin-only operation.
ProcessingException
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
public int compareTo(Object o)
compareTo
in interface Comparable
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |