Package org.dspace.app.xmlui.utils

Examples of org.dspace.app.xmlui.utils.DSpaceValidity.complete()


              for(BrowseItem item : getRecentlySubmittedItems(collection))
              {
                  validity.add(item);
              }

              this.validity = validity.complete();
          }
          catch (Exception e)
          {
              // Just ignore all errors and return an invalid cache.
          }
View Full Code Here


                        validity.add("size:"+size);
                      } catch(ItemCountException e) { /* ignore */ }
              }
              }

              this.validity = validity.complete();
          }
          catch (Exception e)
          {
              // Ignore all errors and invalidate the cache.
          }
View Full Code Here

          try {
              dso = HandleUtil.obtainHandle(objectModel);

              DSpaceValidity validity = new DSpaceValidity();
              validity.add(dso);
              this.validity =  validity.complete();
          }
          catch (Exception e)
          {
              // Ignore all errors and just invalidate the cache.
          }
View Full Code Here

              if (assumeCacheValidity != null)
                {
                    validity.setAssumedValidityDelay(assumeCacheValidity);
                }
             
              this.validity = validity.complete();
          }
          catch (SQLException sqle)
          {
              // ignore all errors and return an invalid cache.
          }
View Full Code Here

                        validity.add(facetValue.getAsFilterQuery() + facetValue.getCount());
                    }
                }


                this.validity = validity.complete();
            }
            catch (Exception e) {
                // Just ignore all errors and return an invalid cache.
            }
View Full Code Here

          Group[] groups = Group.allMemberGroups(context, eperson);
          for (Group group : groups) {
            validity.add(group);
          }

          this.validity = validity.complete();
        } catch (SQLException sqle) {
          // Just ignore it and return invalid.
        }
      } else {
        this.validity = NOPValidity.SHARED_INSTANCE;
View Full Code Here

                    for (DiscoverResult.FacetResult facetValue : facetValues) {
                        val.add(facetField + facetValue.getAsFilterQuery() + facetValue.getCount());
                    }
                }

                this.validity = val.complete();
            }
            catch (Exception e) {
                log.error(e.getMessage(),e);
            }
            //TODO: dependent on tags as well :)
View Full Code Here

                    {
                        validity.add(facetField + facetResult.getAsFilterQuery() + facetResult.getCount());
                    }
                }

                this.validity = validity.complete();
            } catch (RuntimeException re) {
                throw re;
            }
            catch (Exception e) {
                this.validity = null;
View Full Code Here

              for (Collection collection : collections)
              {
                  validity.add(collection);
              }

              this.validity = validity.complete();
          }
          catch (Exception e)
          {
              // Ignore all errors and invalidate the cache.
          }
View Full Code Here

              DSpaceValidity validity = new DSpaceValidity();

              // Add the actual collection;
              validity.add(collection);

              this.validity = validity.complete();
          }
          catch (Exception e)
          {
              // Just ignore all errors and return an invalid cache.
          }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.