com.atlassian.greenhopper.service.rapid
Interface RapidViewService

All Known Implementing Classes:
RapidViewServiceImpl

public interface RapidViewService


Method Summary
 boolean canEdit(com.atlassian.crowd.embedded.api.User user, RapidView rapidView)
           
 RapidView create(com.atlassian.crowd.embedded.api.User user, ErrorCollection errors, java.lang.String name, java.lang.Long filterId)
          Create a new RapidView entity and store it in the database.
 RapidView getRapidView(com.atlassian.crowd.embedded.api.User user, ErrorCollection errors, java.lang.Long id)
           
 java.util.List<RapidView> getRapidViews(com.atlassian.crowd.embedded.api.User user)
           
 ErrorCollection update(com.atlassian.crowd.embedded.api.User user, RapidView view)
          Save a RapidView entity's state to the database.
 

Method Detail

getRapidView

RapidView getRapidView(com.atlassian.crowd.embedded.api.User user,
                       ErrorCollection errors,
                       java.lang.Long id)
Returns:
rapid view for the given user and ID, or null if it doesn't exist or the user doesn't have permission to see it

getRapidViews

java.util.List<RapidView> getRapidViews(com.atlassian.crowd.embedded.api.User user)
Returns:
all views the user is allowed to see, or an empty list.

create

RapidView create(com.atlassian.crowd.embedded.api.User user,
                 ErrorCollection errors,
                 java.lang.String name,
                 java.lang.Long filterId)
Create a new RapidView entity and store it in the database.

Parameters:
filterId - : The ID of JIRA's SearchRequest that is to be associated with the new view

update

ErrorCollection update(com.atlassian.crowd.embedded.api.User user,
                       RapidView view)
Save a RapidView entity's state to the database. The ID must be set.


canEdit

boolean canEdit(com.atlassian.crowd.embedded.api.User user,
                RapidView rapidView)
Returns:
if the user is allowed to Manage the RapidView: Edit column-status mappings, constraints, names, ...


Copyright © 2007-2011 Atlassian. All Rights Reserved.