|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.worklog.OfBizWorklogStore
public class OfBizWorklogStore
Field Summary | |
---|---|
static String |
WORKLOG_ENTITY
|
Constructor Summary | |
---|---|
OfBizWorklogStore(OfBizDelegator ofBizDelegator,
IssueManager issueManager)
|
Method Summary | |
---|---|
Worklog |
create(Worklog worklog)
Creates a new worklog in the data store based on the values in the passed in Worklog object. |
boolean |
delete(Long worklogId)
Deletes a worklog from the data store based on the passed in id. |
Worklog |
getById(Long id)
Returns a worklog specified by it's id |
List<Worklog> |
getByIssue(Issue issue)
Returns all child worklogs of a specified issue |
long |
getCountForWorklogsRestrictedByGroup(String groupName)
Returns the count of all Worklog 's that have a visibility restriction
of the provided group. |
int |
swapWorklogGroupRestriction(String groupName,
String swapGroup)
Updates Worklog 's such that worklogs that have a visibility
restriction of the provided groupName will be changed to have a visibility restriction of the
provided swapGroup. |
Worklog |
update(Worklog worklog)
Updates fields of an existing worklog in the datastore (identified by its id) with the supplied worklog. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String WORKLOG_ENTITY
Constructor Detail |
---|
public OfBizWorklogStore(OfBizDelegator ofBizDelegator, IssueManager issueManager)
Method Detail |
---|
public Worklog update(Worklog worklog)
WorklogStore
update
in interface WorklogStore
worklog
- identifies the worklog to update and provides the updated values.
public Worklog create(Worklog worklog)
WorklogStore
create
in interface WorklogStore
worklog
- specifies the values to create the worklog with.
public boolean delete(Long worklogId)
WorklogStore
delete
in interface WorklogStore
worklogId
- specifies which worklog to delete (not null)
public Worklog getById(Long id)
WorklogStore
getById
in interface WorklogStore
id
- the specified id (not null)
public List<Worklog> getByIssue(Issue issue)
WorklogStore
getByIssue
in interface WorklogStore
issue
- the specified parent issue (not null)
public int swapWorklogGroupRestriction(String groupName, String swapGroup)
WorklogStore
Worklog
's such that worklogs that have a visibility
restriction of the provided groupName will be changed to have a visibility restriction of the
provided swapGroup.
Note: There is no validation performed by this method to determine if the provided swapGroup is a valid
group with JIRA. This validation must be done by the caller.
swapWorklogGroupRestriction
in interface WorklogStore
groupName
- identifies the group the worklogs are restricted by, this must not be null.swapGroup
- identifies the group the worklogs will be changed to be restricted by, this must not be null.
public long getCountForWorklogsRestrictedByGroup(String groupName)
WorklogStore
Worklog
's that have a visibility restriction
of the provided group.
getCountForWorklogsRestrictedByGroup
in interface WorklogStore
groupName
- identifies the group the worklogs are restricted by, this must not be null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |