Package org.dspace.plugin

Examples of org.dspace.plugin.PluginException


      RecentSubmissions recent = rsm.getRecentSubmissions(community);
      request.setAttribute("recently.submitted", recent);
    }
    catch (RecentSubmissionsException e)
    {
      throw new PluginException(e);
    }
  }
View Full Code Here


      RecentSubmissions recent = rsm.getRecentSubmissions(collection);
      request.setAttribute("recently.submitted", recent);
    }
    catch (RecentSubmissionsException e)
    {
      throw new PluginException(e);
    }
  }
View Full Code Here

        {
            communities = Community.findAllTop(context);
        }
        catch (SQLException e)
        {
            throw new PluginException(e.getMessage(), e);
        }
        request.setAttribute("communities", communities);
    }
View Full Code Here

            request.setAttribute("recent.submissions", recent);

        }
        catch (RecentSubmissionsException e)
        {
            throw new PluginException(e);
        }
    }
View Full Code Here

          if (VersionUtil.isLatest(context, item) && item.isArchived()) {
            hasVersionButton = true;
          }
        }
      } catch (SQLException e) {
        throw new PluginException(e.getMessage());
      }

      if (VersionUtil.hasVersionHistory(context, item)) {
        hasVersionHistory = true;
        history = VersionUtil.retrieveVersionHistory(context, item);
        for(Version versRow : history.getVersions()) { 
         
                //Skip items currently in submission
                try {
            if(VersionUtil.isItemInSubmission(context, versRow.getItem()))
            {
                continue;
            }
            else {
              historyVersions.add(versRow);
            }
          } catch (SQLException e) {
            throw new PluginException(e.getMessage());
          }
        }
      }

      // Check if we have a history for the item
      Version latestVersion;
      try {
        latestVersion = VersionUtil.checkLatestVersion(context, item);
      } catch (SQLException e) {
        throw new PluginException(e.getMessage());
      }

      if (latestVersion != null) {
        if (latestVersion != null
            && latestVersion.getItemID() != item.getID()) {
          // We have a newer version
          Item latestVersionItem = latestVersion.getItem();
          if (latestVersionItem.isArchived()) {
            // Available, add a link for the user alerting him that
            // a new version is available
            newVersionAvailable = true;
            try {
              latestVersionURL = HandleManager.resolveToURL(
                  context, latestVersionItem.getHandle());
            } catch (SQLException e) {
              throw new PluginException(e.getMessage());
            }
            latestVersionHandle = latestVersionItem.getHandle();
          } else {
            // We might be dealing with a workflow/workspace item
            showVersionWorkflowAvailable = true;
View Full Code Here

      RecentSubmissions recent = rsm.getRecentSubmissions(community);
      request.setAttribute("recently.submitted", recent);
    }
    catch (RecentSubmissionsException e)
    {
      throw new PluginException(e);
    }
  }
View Full Code Here

      RecentSubmissions recent = rsm.getRecentSubmissions(collection);
      request.setAttribute("recently.submitted", recent);
    }
    catch (RecentSubmissionsException e)
    {
      throw new PluginException(e);
    }
  }
View Full Code Here

TOP

Related Classes of org.dspace.plugin.PluginException

Copyright © 2018 www.massapicom. 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.