com.atlassian.crucible.plugin.export
Class CrucibleDirectClient

java.lang.Object
  extended by com.atlassian.crucible.plugin.export.CrucibleDirectClient
All Implemented Interfaces:
CrucibleClient

public class CrucibleDirectClient
extends java.lang.Object
implements CrucibleClient

Provides direct interaction with the Crucible API directly, through the ReviewService instance.

Author:
Ross Rowe

Constructor Summary
CrucibleDirectClient(com.atlassian.crucible.spi.services.ReviewService reviewService)
           
 
Method Summary
 java.util.List<com.atlassian.crucible.spi.data.GeneralCommentData> getGeneralComments(java.lang.String reviewId)
          Returns the list of GeneralCommentData instances for the reviewId.
 com.atlassian.crucible.spi.data.ReviewData getReview(java.lang.String reviewId)
          Retrieves the ReviewData instance for the reviewId.
 com.atlassian.crucible.spi.data.FisheyeReviewItemData getReviewItemData(java.lang.String reviewId, java.lang.String reviewItemId)
          Retrieves the FisheyeReviewItemData instance for the reviewId and the reviewItemId.
 java.lang.String getUserName(java.lang.String userId)
          Returns a user's real name.
 java.util.List<com.atlassian.crucible.spi.data.VersionedLineCommentData> getVersionedComments(java.lang.String reviewId)
          Returns a list of VersionedLineCommentData instances for the reviewId.
 java.lang.String login(java.lang.String username, java.lang.String password)
          Performs a login action using the username and password.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrucibleDirectClient

public CrucibleDirectClient(com.atlassian.crucible.spi.services.ReviewService reviewService)
Method Detail

getGeneralComments

public java.util.List<com.atlassian.crucible.spi.data.GeneralCommentData> getGeneralComments(java.lang.String reviewId)
Returns the list of GeneralCommentData instances for the reviewId.

Specified by:
getGeneralComments in interface CrucibleClient
Returns:

getReview

public com.atlassian.crucible.spi.data.ReviewData getReview(java.lang.String reviewId)
Retrieves the ReviewData instance for the reviewId.

Specified by:
getReview in interface CrucibleClient
Returns:

getVersionedComments

public java.util.List<com.atlassian.crucible.spi.data.VersionedLineCommentData> getVersionedComments(java.lang.String reviewId)
Returns a list of VersionedLineCommentData instances for the reviewId.

Specified by:
getVersionedComments in interface CrucibleClient
Returns:

login

public java.lang.String login(java.lang.String username,
                              java.lang.String password)
Performs a login action using the username and password.

Specified by:
login in interface CrucibleClient
Returns:

getReviewItemData

public com.atlassian.crucible.spi.data.FisheyeReviewItemData getReviewItemData(java.lang.String reviewId,
                                                                               java.lang.String reviewItemId)
Retrieves the FisheyeReviewItemData instance for the reviewId and the reviewItemId.

Specified by:
getReviewItemData in interface CrucibleClient
Returns:

getUserName

public java.lang.String getUserName(java.lang.String userId)
Returns a user's real name.

Specified by:
getUserName in interface CrucibleClient
Returns:


Copyright © 2008. All Rights Reserved.