hudson.drools
Class HumanTask
java.lang.Object
hudson.model.AbstractModelObject
hudson.drools.HumanTask
- All Implemented Interfaces:
- hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem, hudson.security.AccessControlled, java.io.Serializable
public class HumanTask
- extends hudson.model.AbstractModelObject
- implements java.io.Serializable, hudson.security.AccessControlled
- See Also:
- Serialized Form
|
Constructor Summary |
HumanTask(java.lang.String displayName,
boolean privateTask)
|
| Methods inherited from class hudson.model.AbstractModelObject |
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HumanTask
public HumanTask(java.lang.String displayName,
boolean privateTask)
getStatus
public HumanTask.Status getStatus()
isPrivateTask
public boolean isPrivateTask()
doSubmit
public void doSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws java.io.IOException,
javax.servlet.ServletException
- Throws:
java.io.IOException
javax.servlet.ServletException
cancel
public void cancel()
throws java.io.IOException
- Throws:
java.io.IOException
getDisplayName
public java.lang.String getDisplayName()
- Specified by:
getDisplayName in interface hudson.model.ModelObject
getSearchUrl
public java.lang.String getSearchUrl()
- Specified by:
getSearchUrl in interface hudson.search.SearchItem
isCompleted
public boolean isCompleted()
isCanceled
public boolean isCanceled()
isNew
public boolean isNew()
getWorkItemId
public long getWorkItemId()
setWorkItemId
public void setWorkItemId(long workItemId)
getParameterDefinitions
public java.util.List<hudson.model.ParameterDefinition> getParameterDefinitions()
getAnswers
public java.util.List<hudson.model.ParameterValue> getAnswers()
getRun
public DroolsRun getRun()
setRun
public void setRun(DroolsRun run)
getUrl
public java.lang.String getUrl()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getActorId
public java.lang.String getActorId()
getActor
public hudson.model.User getActor()
setActorId
public void setActorId(java.lang.String actorId)
canRead
public boolean canRead()
canComplete
public boolean canComplete()
checkPermission
public void checkPermission(hudson.security.Permission permission)
throws org.acegisecurity.AccessDeniedException
- Specified by:
checkPermission in interface hudson.security.AccessControlled
- Throws:
org.acegisecurity.AccessDeniedException
getACL
public hudson.security.ACL getACL()
- Specified by:
getACL in interface hudson.security.AccessControlled
hasPermission
public boolean hasPermission(hudson.security.Permission permission)
- Specified by:
hasPermission in interface hudson.security.AccessControlled
getHumanTaskByWorkItemId
public static HumanTask getHumanTaskByWorkItemId(long workItemId)
Copyright © 2009. All Rights Reserved.