|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.theplugin.commons.crucible.CrucibleServerFacadeImpl
public final class CrucibleServerFacadeImpl
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static CrucibleServerFacade getInstance()
public void setUserCache(CrucibleUserCache newCache)
public ServerType getServerType()
getServerType
in interface ProductServerFacade
@Nullable public java.lang.String getDisplayName(@NotNull CrucibleServerCfg server, @NotNull java.lang.String username)
getDisplayName
in interface CrucibleServerFacade
public CrucibleProject getProject(@NotNull CrucibleServerCfg server, @NotNull java.lang.String projectKey) throws RemoteApiException, ServerPasswordNotProvidedException
getProject
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public void testServerConnection(java.lang.String url, java.lang.String userName, java.lang.String password) throws RemoteApiException
testServerConnection
in interface ProductServerFacade
RemoteApiException
ProductServerFacade.testServerConnection(java.lang.String,
java.lang.String, java.lang.String)
public void testServerConnection(ServerCfg serverCfg) throws RemoteApiException
testServerConnection
in interface ProductServerFacade
serverCfg
- The configuration for the server that we want to test the connectio for
CrucibleException
RemoteApiException
public Review createReview(CrucibleServerCfg server, Review review) throws RemoteApiException, ServerPasswordNotProvidedException
createReview
in interface CrucibleServerFacade
server
- review
- data for new review to create (some fields have to be set e.g. projectKey)
CrucibleException
- in case of createReview error or CrucibleLoginException in case of login error
RemoteApiException
ServerPasswordNotProvidedException
public Review createReviewFromRevision(CrucibleServerCfg server, Review review, java.util.List<java.lang.String> revisions) throws RemoteApiException, ServerPasswordNotProvidedException
createReviewFromRevision
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public Review addRevisionsToReview(CrucibleServerCfg server, PermId permId, java.lang.String repository, java.util.List<java.lang.String> revisions) throws RemoteApiException, ServerPasswordNotProvidedException
addRevisionsToReview
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public Review addPatchToReview(CrucibleServerCfg server, PermId permId, java.lang.String repository, java.lang.String patch) throws RemoteApiException, ServerPasswordNotProvidedException
addPatchToReview
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public void addReviewers(CrucibleServerCfg server, PermId permId, java.util.Set<java.lang.String> userNames) throws RemoteApiException, ServerPasswordNotProvidedException
addReviewers
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public void removeReviewer(CrucibleServerCfg server, PermId permId, java.lang.String userName) throws RemoteApiException, ServerPasswordNotProvidedException
removeReviewer
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public Review approveReview(CrucibleServerCfg server, PermId permId) throws RemoteApiException, ServerPasswordNotProvidedException
approveReview
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public Review submitReview(CrucibleServerCfg server, PermId permId) throws RemoteApiException, ServerPasswordNotProvidedException
submitReview
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public Review summarizeReview(CrucibleServerCfg server, PermId permId) throws RemoteApiException, ServerPasswordNotProvidedException
summarizeReview
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public Review abandonReview(CrucibleServerCfg server, PermId permId) throws RemoteApiException, ServerPasswordNotProvidedException
abandonReview
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public Review closeReview(CrucibleServerCfg server, PermId permId, java.lang.String summary) throws RemoteApiException, ServerPasswordNotProvidedException
closeReview
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public Review recoverReview(CrucibleServerCfg server, PermId permId) throws RemoteApiException, ServerPasswordNotProvidedException
recoverReview
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public Review reopenReview(CrucibleServerCfg server, PermId permId) throws RemoteApiException, ServerPasswordNotProvidedException
reopenReview
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public void completeReview(CrucibleServerCfg server, PermId permId, boolean complete) throws RemoteApiException, ServerPasswordNotProvidedException
completeReview
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public Review createReviewFromPatch(CrucibleServerCfg server, Review review, java.lang.String patch) throws RemoteApiException, ServerPasswordNotProvidedException
createReviewFromPatch
in interface CrucibleServerFacade
server
- review
- data for new review to create (some fields have to be set e.g. projectKey)patch
- patch to assign with the review
CrucibleException
- in case of createReview error or CrucibleLoginException in case of login error
RemoteApiException
ServerPasswordNotProvidedException
public java.util.Set<CrucibleFileInfo> getFiles(CrucibleServerCfg server, PermId permId) throws RemoteApiException, ServerPasswordNotProvidedException
getFiles
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public java.util.List<GeneralComment> getGeneralComments(CrucibleServerCfg server, PermId permId) throws RemoteApiException, ServerPasswordNotProvidedException
getGeneralComments
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public java.util.List<VersionedComment> getVersionedComments(CrucibleServerCfg server, PermId permId) throws RemoteApiException, ServerPasswordNotProvidedException
getVersionedComments
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public java.util.List<VersionedComment> getVersionedComments(CrucibleServerCfg server, PermId permId, PermId reviewItemId) throws RemoteApiException, ServerPasswordNotProvidedException
getVersionedComments
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public java.util.List<GeneralComment> getReplies(CrucibleServerCfg server, PermId permId, PermId commentId) throws RemoteApiException, ServerPasswordNotProvidedException
RemoteApiException
ServerPasswordNotProvidedException
public GeneralComment addGeneralComment(CrucibleServerCfg server, PermId permId, GeneralComment comment) throws RemoteApiException, ServerPasswordNotProvidedException
addGeneralComment
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public VersionedComment addVersionedComment(CrucibleServerCfg server, PermId permId, PermId riId, VersionedComment comment) throws RemoteApiException, ServerPasswordNotProvidedException
addVersionedComment
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public void updateComment(CrucibleServerCfg server, PermId id, Comment comment) throws RemoteApiException, ServerPasswordNotProvidedException
updateComment
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public void publishComment(CrucibleServerCfg server, PermId reviewId, PermId commentId) throws RemoteApiException, ServerPasswordNotProvidedException
publishComment
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public void publishAllCommentsForReview(CrucibleServerCfg server, PermId reviewId) throws RemoteApiException, ServerPasswordNotProvidedException
publishAllCommentsForReview
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public GeneralComment addGeneralCommentReply(CrucibleServerCfg server, PermId id, PermId cId, GeneralComment comment) throws RemoteApiException, ServerPasswordNotProvidedException
addGeneralCommentReply
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public VersionedComment addVersionedCommentReply(CrucibleServerCfg server, PermId id, PermId cId, VersionedComment comment) throws RemoteApiException, ServerPasswordNotProvidedException
addVersionedCommentReply
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public void removeComment(CrucibleServerCfg server, PermId id, Comment comment) throws RemoteApiException, ServerPasswordNotProvidedException
removeComment
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public java.util.List<User> getUsers(CrucibleServerCfg server) throws RemoteApiException, ServerPasswordNotProvidedException
getUsers
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public java.util.List<CrucibleProject> getProjects(CrucibleServerCfg server) throws RemoteApiException, ServerPasswordNotProvidedException
getProjects
in interface CrucibleServerFacade
server
-
RemoteApiException
ServerPasswordNotProvidedException
public java.util.List<Repository> getRepositories(CrucibleServerCfg server) throws RemoteApiException, ServerPasswordNotProvidedException
getRepositories
in interface CrucibleServerFacade
server
-
RemoteApiException
ServerPasswordNotProvidedException
public SvnRepository getRepository(CrucibleServerCfg server, java.lang.String repoName) throws RemoteApiException, ServerPasswordNotProvidedException
getRepository
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public java.util.List<CustomFieldDef> getMetrics(CrucibleServerCfg server, int version) throws RemoteApiException, ServerPasswordNotProvidedException
getMetrics
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public java.util.List<Review> getAllReviews(CrucibleServerCfg server) throws RemoteApiException, ServerPasswordNotProvidedException
getAllReviews
in interface CrucibleServerFacade
server
- server object with Url, Login and Password to connect to
RemoteApiException
ServerPasswordNotProvidedException
public java.util.List<Review> getReviewsForFilter(CrucibleServerCfg server, PredefinedFilter filter) throws RemoteApiException, ServerPasswordNotProvidedException
getReviewsForFilter
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public java.util.List<Review> getReviewsForCustomFilter(CrucibleServerCfg server, CustomFilter filter) throws RemoteApiException, ServerPasswordNotProvidedException
getReviewsForCustomFilter
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public Review getReview(CrucibleServerCfg server, PermId permId) throws RemoteApiException, ServerPasswordNotProvidedException
getReview
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public java.util.List<Reviewer> getReviewers(CrucibleServerCfg server, PermId permId) throws RemoteApiException, ServerPasswordNotProvidedException
getReviewers
in interface CrucibleServerFacade
RemoteApiException
ServerPasswordNotProvidedException
public void setCallback(HttpSessionCallback callback)
setCallback
in interface CrucibleServerFacade
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |