Package org.dspace.app.xmlui.utils

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


//                        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(Item item : getRecentlySubmittedItems(context,dso))
                {
                    validity.add(item);
                }

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

              // Check if we are configured to assume validity.
              String assumeCacheValidity = ConfigurationManager.getProperty("xmlui.community-list.cache");
              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

              {
                  DSpaceObject resultDSO = HandleManager.resolveToObject(context, handle);
                  validity.add(resultDSO);
              }
             
              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 (Group group : groups)
                {
                  validity.add(group);
                }
               
                this.validity = validity.complete();
            }
            catch (SQLException sqle)
            {
                // Just ignore it and return invalid.
            }
View Full Code Here

                for (Group group : groups)
                {
                  validity.add(group);
                }
               
                this.validity = validity.complete();
            }
            catch (SQLException sqle)
            {
                // Just ignore it and return invalid.
            }
View Full Code Here

              for (BrowseItem item : getRecentlySubmittedIems(community))
              {
                  validity.add(item);
              }
             
              this.validity = validity.complete();
          }
          catch (Exception e)
          {
              // Ignore all errors and invalidate the cache.
          }
View Full Code Here

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

              for(BrowseItem item : getRecientlySubmittedIems(collection))
              {
                  validity.add(item);
              }
             
              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.