|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kohsuke.jnt.tools.RoleRequest
public class RoleRequest
A notification message sent from java.net when someone requests a role.
Field Summary | |
---|---|
String |
projectName
Project to which the role is requested. |
String |
roleName
The role that was requested. |
String |
userName
The account name of the user who requested the role. |
Constructor Summary | |
---|---|
RoleRequest(Reader message)
Parses the notification e-mail and constructs this object. |
|
RoleRequest(String _projectName,
String _userName,
String _roleName)
Creates a new request. |
Method Summary | |
---|---|
void |
decline(JavaNet javanet,
String reason)
Declines this request. |
void |
grant(JavaNet javanet)
Grants this request. |
static void |
main(String[] args)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final String projectName
public final String userName
public final String roleName
Constructor Detail |
---|
public RoleRequest(String _projectName, String _userName, String _roleName)
public RoleRequest(Reader message) throws IOException, ParseException
message
- The Reader
that reads an e-mail. This could be just the content
of an e-mail, or the whole message including MIME headers.
ParseException
- if the text isn't a role request e-mail.
IOException
Method Detail |
---|
public void grant(JavaNet javanet) throws ProcessingException
ProcessingException
public void decline(JavaNet javanet, String reason) throws ProcessingException
ProcessingException
public String toString()
toString
in class Object
public static void main(String[] args) throws IOException, ParseException
IOException
ParseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |