コード例 #1
0
 /** Execute issue filter from existing filter with optional overridable parameters */
 public IssueFilterResult execute(Long issueFilterId, Map<String, Object> overrideProps) {
   DefaultIssueFilter issueFilter = issueFilterService.find(issueFilterId, UserSession.get());
   Map<String, Object> props = issueFilterService.deserializeIssueFilterQuery(issueFilter);
   overrideProps(props, overrideProps);
   IssueQuery issueQuery = PublicRubyIssueService.toQuery(props);
   return issueFilterService.execute(issueQuery);
 }
コード例 #2
0
 public boolean isUserAuthorized(DefaultIssueFilter issueFilter) {
   try {
     UserSession userSession = UserSession.get();
     String user = issueFilterService.getLoggedLogin(userSession);
     issueFilterService.verifyCurrentUserCanReadFilter(issueFilter, user);
     return true;
   } catch (Exception e) {
     return false;
   }
 }
コード例 #3
0
 public boolean toggleFavouriteIssueFilter(Long issueFilterId) {
   return issueFilterService.toggleFavouriteIssueFilter(issueFilterId, UserSession.get());
 }
コード例 #4
0
 public List<DefaultIssueFilter> findFavouriteIssueFiltersForCurrentUser() {
   return issueFilterService.findFavoriteFilters(UserSession.get());
 }
コード例 #5
0
 public List<DefaultIssueFilter> findSharedFiltersForCurrentUser() {
   return issueFilterService.findSharedFiltersWithoutUserFilters(UserSession.get());
 }
コード例 #6
0
 /** Copy issue filter */
 public DefaultIssueFilter copyIssueFilter(
     Long issueFilterIdToCopy, Map<String, String> parameters) {
   DefaultIssueFilter result = createIssueFilterResultForCopy(parameters);
   return issueFilterService.copy(issueFilterIdToCopy, result, UserSession.get());
 }
コード例 #7
0
 /** Delete issue filter */
 public void deleteIssueFilter(Long issueFilterId) {
   issueFilterService.delete(issueFilterId, UserSession.get());
 }
コード例 #8
0
 /** Update issue filter data */
 public DefaultIssueFilter updateIssueFilterQuery(Long issueFilterId, Map<String, Object> data) {
   return issueFilterService.updateFilterQuery(issueFilterId, data, UserSession.get());
 }
コード例 #9
0
 /** Update issue filter */
 public DefaultIssueFilter updateIssueFilter(Map<String, String> parameters) {
   DefaultIssueFilter result = createIssueFilterResultForUpdate(parameters);
   return issueFilterService.update(result, UserSession.get());
 }
コード例 #10
0
 /** List user issue filter */
 public List<DefaultIssueFilter> findIssueFiltersForCurrentUser() {
   return issueFilterService.findByUser(UserSession.get());
 }
コード例 #11
0
 /** Execute issue filter from parameters */
 public IssueFilterResult execute(Map<String, Object> props) {
   IssueQuery issueQuery = PublicRubyIssueService.toQuery(props);
   return issueFilterService.execute(issueQuery);
 }
コード例 #12
0
 public Map<String, Object> deserializeFilterQuery(DefaultIssueFilter issueFilter) {
   return issueFilterService.deserializeIssueFilterQuery(issueFilter);
 }
コード例 #13
0
 public String serializeFilterQuery(Map<String, Object> filterQuery) {
   return issueFilterService.serializeFilterQuery(filterQuery);
 }
コード例 #14
0
 public boolean canUserShareIssueFilter() {
   return issueFilterService.canShareFilter(UserSession.get());
 }
コード例 #15
0
 /** Return the issue filter if the user has the right to see it Never return null */
 public DefaultIssueFilter findIssueFilter(Long id) {
   return issueFilterService.find(id, UserSession.get());
 }
コード例 #16
0
 @CheckForNull
 public DefaultIssueFilter findIssueFilterById(Long id) {
   return issueFilterService.findById(id);
 }