Пример #1
0
 private void deleteLink(long id) {
   try {
     wsClient.projectLinks().delete(new DeleteWsRequest().setId(id));
   } catch (Exception e) {
     // fail silently
   }
 }
Пример #2
0
 private CreateWsResponse createCustomLink() {
   return wsClient
       .projectLinks()
       .create(
           new CreateWsRequest()
               .setProjectKey("sample")
               .setName("Custom")
               .setUrl("http://example.org/custom"));
 }