com.atlassian.jira.bc
Class JiraServiceContextImpl

java.lang.Object
  extended by com.atlassian.jira.bc.JiraServiceContextImpl
All Implemented Interfaces:
JiraServiceContext

public class JiraServiceContextImpl
extends Object
implements JiraServiceContext

Default implementation of the JiraServiceContext.


Constructor Summary
JiraServiceContextImpl(User user)
          Instantiates this class with given user and new empty error collection
JiraServiceContextImpl(User user, ErrorCollection errorCollection)
          Instantiates this class with user and error collection
 
Method Summary
 ErrorCollection getErrorCollection()
          Returns error collection, never null
 User getUser()
          Returns user, can be null
 String toString()
          Prints username and error collection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JiraServiceContextImpl

public JiraServiceContextImpl(User user,
                              ErrorCollection errorCollection)
                       throws IllegalArgumentException
Instantiates this class with user and error collection

Parameters:
user - user
errorCollection - error collection
Throws:
IllegalArgumentException - if error collection is null

JiraServiceContextImpl

public JiraServiceContextImpl(User user)
Instantiates this class with given user and new empty error collection

Parameters:
user - user
Method Detail

getErrorCollection

public ErrorCollection getErrorCollection()
Returns error collection, never null

Specified by:
getErrorCollection in interface JiraServiceContext
Returns:
error colleciton

getUser

public User getUser()
Returns user, can be null

Specified by:
getUser in interface JiraServiceContext
Returns:
user

toString

public String toString()
Prints username and error collection

Overrides:
toString in class Object
Returns:
string representing username and error collection of this context


Copyright © 2002-2007 Atlassian. All Rights Reserved.