org.eclipse.mylar.tasks.core
Class RepositoryTaskData

java.lang.Object
  extended by org.eclipse.mylar.tasks.core.AttributeContainer
      extended by org.eclipse.mylar.tasks.core.RepositoryTaskData
All Implemented Interfaces:
java.io.Serializable

public class RepositoryTaskData
extends AttributeContainer
implements java.io.Serializable

Author:
Mik Kersten, Rob Elves
See Also:
Serialized Form

Field Summary
private  java.util.List<RepositoryAttachment> attachments
           
protected  java.util.Date created
          Creation timestamp
protected  java.lang.String description
          Description of the bug
private  boolean hasLocalChanges
           
protected  java.util.Date lastModified
          Modification timestamp
protected  java.lang.String newComment
           
private  java.lang.String reportID
           
protected  java.lang.String repositoryKind
           
protected  java.util.List<RepositoryOperation> repositoryOperations
          The repositoryOperations that can be done on the report
private  java.lang.String repositoryURL
           
protected  RepositoryOperation selectedOperation
          The operation that was selected to do to the bug
private static long serialVersionUID
           
private  java.util.List<TaskComment> taskComments
           
static java.lang.String VAL_STATUS_NEW
           
protected  java.util.List<java.lang.String> validKeywords
          The bugs valid keywords
 
Fields inherited from class org.eclipse.mylar.tasks.core.AttributeContainer
ERROR_NO_ATTRIBUTE_FACTORY
 
Constructor Summary
RepositoryTaskData(AbstractAttributeFactory factory, java.lang.String repositoryKind, java.lang.String repositoryURL, java.lang.String id)
           
 
Method Summary
 void addAttachment(RepositoryAttachment attachment)
           
 void addComment(TaskComment taskComment)
           
 void addOperation(RepositoryOperation o)
          Add an operation to the bug
 java.lang.String getAssignedTo()
           
 java.util.List<RepositoryAttachment> getAttachments()
           
 java.util.List<java.lang.String> getAttributeValues(java.lang.String key)
           
 java.util.List<java.lang.String> getCC()
           
 java.util.List<TaskComment> getComments()
           
 java.lang.String getCreated()
          Get the date that the bug was created
 java.lang.String getDescription()
           
 RepositoryTaskAttribute getDescriptionAttribute()
           
 java.lang.String getId()
           
 java.util.List<java.lang.String> getKeywords()
          Get the keywords for the bug
 java.lang.String getLabel()
           
 java.lang.String getLastModified()
           
 java.lang.String getNewComment()
          Get the new comment that is to be added to the bug
 RepositoryOperation getOperation(java.lang.String displayText)
          Get an operation from the bug based on its display name
 java.util.List<RepositoryOperation> getOperations()
          Get all of the repositoryOperations that can be done to the bug
 java.lang.String getProduct()
           
 java.lang.String getReporter()
          Get the person who reported the bug
 java.lang.String getRepositoryKind()
           
 java.lang.String getRepositoryUrl()
           
 java.lang.String getResolution()
          Get the resolution of the bug
 RepositoryOperation getSelectedOperation()
           
 java.lang.String getStatus()
          Get the status of the bug
 java.lang.String getSummary()
          Get the summary for the bug
 boolean hasLocalChanges()
           
 boolean isLocallyCreated()
           
 void removeAttributeValue(java.lang.String key, java.lang.String value)
           
 void removeCC(java.lang.String email)
           
 void setAttributeFactory(AbstractAttributeFactory factory)
           
 void setDescription(java.lang.String description)
           
 void setHasLocalChanges(boolean b)
           
 void setNewComment(java.lang.String newComment)
          Set the new comment that will be added to the bug
 void setSelectedOperation(RepositoryOperation o)
           
 void setSummary(java.lang.String summary)
           
 
Methods inherited from class org.eclipse.mylar.tasks.core.AttributeContainer
addAttribute, addAttributeValue, getAttribute, getAttributes, getAttributeValue, removeAllAttributes, removeAttribute, setAttributeValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

hasLocalChanges

private boolean hasLocalChanges

VAL_STATUS_NEW

public static final java.lang.String VAL_STATUS_NEW
See Also:
Constant Field Values

reportID

private java.lang.String reportID

repositoryURL

private java.lang.String repositoryURL

newComment

protected java.lang.String newComment

taskComments

private java.util.List<TaskComment> taskComments

attachments

private java.util.List<RepositoryAttachment> attachments

selectedOperation

protected RepositoryOperation selectedOperation
The operation that was selected to do to the bug


repositoryOperations

protected java.util.List<RepositoryOperation> repositoryOperations
The repositoryOperations that can be done on the report


validKeywords

protected java.util.List<java.lang.String> validKeywords
The bugs valid keywords


description

protected java.lang.String description
Description of the bug


created

protected java.util.Date created
Creation timestamp


lastModified

protected java.util.Date lastModified
Modification timestamp


repositoryKind

protected java.lang.String repositoryKind
Constructor Detail

RepositoryTaskData

public RepositoryTaskData(AbstractAttributeFactory factory,
                          java.lang.String repositoryKind,
                          java.lang.String repositoryURL,
                          java.lang.String id)
Method Detail

getLabel

public java.lang.String getLabel()

getResolution

public java.lang.String getResolution()
Get the resolution of the bug

Returns:
The resolution of the bug

getStatus

public java.lang.String getStatus()
Get the status of the bug

Returns:
The bugs status

getLastModified

public java.lang.String getLastModified()

setSelectedOperation

public void setSelectedOperation(RepositoryOperation o)

getSelectedOperation

public RepositoryOperation getSelectedOperation()

getOperations

public java.util.List<RepositoryOperation> getOperations()
Get all of the repositoryOperations that can be done to the bug

Returns:
The repositoryOperations that can be done to the bug

getReporter

public java.lang.String getReporter()
Get the person who reported the bug

Returns:
The person who reported the bug

getOperation

public RepositoryOperation getOperation(java.lang.String displayText)
Get an operation from the bug based on its display name

Parameters:
displayText - The display text for the operation
Returns:
The operation that has the display text

getSummary

public java.lang.String getSummary()
Get the summary for the bug

Returns:
The bugs summary

setSummary

public void setSummary(java.lang.String summary)

getProduct

public java.lang.String getProduct()

isLocallyCreated

public boolean isLocallyCreated()

getCreated

public java.lang.String getCreated()
Get the date that the bug was created

Returns:
The bugs creation date

getKeywords

public java.util.List<java.lang.String> getKeywords()
Get the keywords for the bug

Returns:
The keywords for the bug

addOperation

public void addOperation(RepositoryOperation o)
Add an operation to the bug

Parameters:
o - The operation to add

getCC

public java.util.List<java.lang.String> getCC()

removeCC

public void removeCC(java.lang.String email)

getAssignedTo

public java.lang.String getAssignedTo()

getNewComment

public java.lang.String getNewComment()
Get the new comment that is to be added to the bug


setNewComment

public void setNewComment(java.lang.String newComment)
Set the new comment that will be added to the bug


addComment

public void addComment(TaskComment taskComment)

getComments

public java.util.List<TaskComment> getComments()

setDescription

public void setDescription(java.lang.String description)

getDescription

public java.lang.String getDescription()

getDescriptionAttribute

public RepositoryTaskAttribute getDescriptionAttribute()

addAttachment

public void addAttachment(RepositoryAttachment attachment)

getAttachments

public java.util.List<RepositoryAttachment> getAttachments()

getId

public java.lang.String getId()

getRepositoryUrl

public java.lang.String getRepositoryUrl()
Returns:
the server for this report

hasLocalChanges

public boolean hasLocalChanges()

setHasLocalChanges

public void setHasLocalChanges(boolean b)

getAttributeValues

public java.util.List<java.lang.String> getAttributeValues(java.lang.String key)
Overrides:
getAttributeValues in class AttributeContainer

removeAttributeValue

public void removeAttributeValue(java.lang.String key,
                                 java.lang.String value)

getRepositoryKind

public java.lang.String getRepositoryKind()

setAttributeFactory

public void setAttributeFactory(AbstractAttributeFactory factory)
Overrides:
setAttributeFactory in class AttributeContainer