org.paylogic.fogbugz
Class FogbugzCase

java.lang.Object
  extended by org.paylogic.fogbugz.FogbugzCase

public class FogbugzCase
extends Object

Class that holds data from fogbugz case. Interact with these objects using the FogbugzManager class.


Constructor Summary
FogbugzCase(int id, String title, int openedBy, int assignedTo, List<String> tags, boolean isOpen, String featureBranch, String originalBranch, String targetBranch, String approvedRevision, String ciProject, String milestone)
           
FogbugzCase(int id, String title, int openedBy, int assignedTo, String tags, boolean isOpen, String featureBranch, String originalBranch, String targetBranch, String approvedRevision, String ciProject, String milestone)
           
 
Method Summary
 void addTag(String tag)
          Add a tag for this case.
 void assignToOpener()
          Assign case back to person who opened the case.
 boolean equals(Object otherCase)
           
 boolean hasTag(String tag)
          Check if tag is in tags list.
 void removeTag(String tag)
          Removes tag from list.
static List<String> tagsFromCSV(String tags)
          Load tags from String with CSV
 String tagsToCSV()
          Create CSV String of tags.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FogbugzCase

public FogbugzCase(int id,
                   String title,
                   int openedBy,
                   int assignedTo,
                   List<String> tags,
                   boolean isOpen,
                   String featureBranch,
                   String originalBranch,
                   String targetBranch,
                   String approvedRevision,
                   String ciProject,
                   String milestone)

FogbugzCase

public FogbugzCase(int id,
                   String title,
                   int openedBy,
                   int assignedTo,
                   String tags,
                   boolean isOpen,
                   String featureBranch,
                   String originalBranch,
                   String targetBranch,
                   String approvedRevision,
                   String ciProject,
                   String milestone)
Method Detail

tagsFromCSV

public static List<String> tagsFromCSV(String tags)
Load tags from String with CSV

Parameters:
tags - A String with tags in CSV format.
Returns:
Resulting list, which is also saved.

tagsToCSV

public String tagsToCSV()
Create CSV String of tags.

Returns:
String with tags, as CSV.

addTag

public void addTag(String tag)
Add a tag for this case. Will not add when tag already exists in list.

Parameters:
tag -

hasTag

public boolean hasTag(String tag)
Check if tag is in tags list.

Parameters:
tag -
Returns:
boolean indicating tag is in tags list or not.

removeTag

public void removeTag(String tag)
Removes tag from list.

Parameters:
tag - The tag to remove.

assignToOpener

public void assignToOpener()
Assign case back to person who opened the case.


equals

public boolean equals(Object otherCase)
Overrides:
equals in class Object


Copyright © 2015. All rights reserved.