Package org.dspace.app.xmlui.utils

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


                        // Generate the validity based on the properties of the report data file
                        DSpaceValidity newValidity = new DSpaceValidity();
                        newValidity.add(Long.toString(analysisFile.lastModified()));
                        newValidity.add("-");
                        newValidity.add(Long.toString(analysisFile.length()));
                        validity = newValidity.complete();
                    }
                }
            }
            catch (Exception e)
            {
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

                        val.add(count.getName() + count.getCount());
                    }
                }


                this.validity = val.complete();
            }
            catch (Exception e) {
                log.error(e.getMessage(),e);
            }
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

              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

                        validity.add(count.getName() + "#" + count.getCount());
                    }
                }


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

            //TODO: dependent on tags as well :)
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

          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

                    for (SolrDocument result : results) {
                        validity.add(result.toString());
                    }
                }

                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.