com.atlassian.greenhopper.service.rapid
Class RapidViewServiceImpl

java.lang.Object
  extended by com.atlassian.greenhopper.global.AbstractLoggable
      extended by com.atlassian.greenhopper.service.rapid.RapidViewServiceImpl
All Implemented Interfaces:
RapidViewService

@Service
public class RapidViewServiceImpl
extends AbstractLoggable
implements RapidViewService


Field Summary
 
Fields inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logger
 
Constructor Summary
RapidViewServiceImpl()
           
 
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 savedFilterId)
          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.
 
Methods inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logDebug, logException, logInfo, logTrace, logWarn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RapidViewServiceImpl

public RapidViewServiceImpl()
Method Detail

create

public RapidView create(com.atlassian.crowd.embedded.api.User user,
                        ErrorCollection errors,
                        java.lang.String name,
                        java.lang.Long savedFilterId)
Description copied from interface: RapidViewService
Create a new RapidView entity and store it in the database.

Specified by:
create in interface RapidViewService
savedFilterId - : The ID of JIRA's SearchRequest that is to be associated with the new view

update

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

Specified by:
update in interface RapidViewService

getRapidViews

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

getRapidView

public RapidView getRapidView(com.atlassian.crowd.embedded.api.User user,
                              ErrorCollection errors,
                              java.lang.Long id)
Specified by:
getRapidView in interface RapidViewService
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

canEdit

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


Copyright © 2007-2011 Atlassian. All Rights Reserved.