Examples of DSpace


Examples of org.dspace.utils.DSpace

    @Override
    public void doJSONRequest(Context context, HttpServletRequest req,
            HttpServletResponse resp) throws AuthorizeException, IOException           
    {

        DSpace dspace = new DSpace();
        ApplicationService service = dspace.getServiceManager()
                .getServiceByName("applicationService",
                        ApplicationService.class);

        String researcher = req.getParameter("researcher");
View Full Code Here

Examples of org.dspace.utils.DSpace

  @Override
  public void doJSONRequest(Context context, HttpServletRequest req,
      HttpServletResponse respthrows AuthorizeException, IOException      
    {

    DSpace dspace = new DSpace();
    ApplicationService service = dspace.getServiceManager()
        .getServiceByName("applicationService",
            ApplicationService.class);

    String dept = req.getParameter("dept");
   
View Full Code Here

Examples of org.dspace.utils.DSpace

                    ou);
            model.put("subscribed", subscribed);           
        }
       
        request.setAttribute("sectionid", StatsConfig.DETAILS_SECTION);
        new DSpace().getEventService().fireEvent(
                new UsageEvent(
                        UsageEvent.Action.VIEW,
                        request,
                        context,
                        ou));
View Full Code Here

Examples of org.dspace.utils.DSpace

   
    public ApplicationService getApplicationService()
    {
        if (applicationService == null)
        {
            DSpace dspace = new DSpace();
            applicationService = dspace.getServiceManager().getServiceByName(
                    "applicationService", ApplicationService.class);
        }
        return applicationService;
    }
View Full Code Here

Examples of org.dspace.utils.DSpace

    public SearchService getSearchService()
    {
        if (searchService == null)
        {
            DSpace dspace = new DSpace();
            searchService = dspace.getServiceManager().getServiceByName(
                    SearchService.class.getName(), CrisSearchService.class);
        }
        return searchService;
    }
View Full Code Here

Examples of org.dspace.utils.DSpace

     *             If something goes wrong
     */
    public static void main(String[] args) throws Exception
    {

        DSpace dspace = new DSpace();

        SolrLogger indexer = dspace.getServiceManager().getServiceByName(
                SolrLogger.class.getName(), SolrLogger.class);

        CommandLineParser parser = new PosixParser();

        Options options = new Options();
View Full Code Here

Examples of org.dspace.utils.DSpace

                    dyn);
            model.put("subscribed", subscribed);           
        }
       
        request.setAttribute("sectionid", StatsConfig.DETAILS_SECTION);
        new DSpace().getEventService().fireEvent(
                new UsageEvent(
                        UsageEvent.Action.VIEW,
                        request,
                        context,
                        dyn));
View Full Code Here

Examples of org.dspace.utils.DSpace

                AWidgetFileCris widget = (AWidgetFileCris) tp.getRendering();
                // Fire usage event.
                if (widget.isUseInStatistics())
                {
                    request.setAttribute("sectionid", tp.getId());
                    new DSpace().getEventService().fireEvent(
                            new UsageEvent(UsageEvent.Action.VIEW, request,
                                    UIUtil.obtainContext(request),
                                    applicationService.getEntityByCrisId(id,
                                            getTargetObject())));
                }
View Full Code Here

Examples of org.dspace.utils.DSpace

                                .getBooleanProperty(SolrLogger.CFG_STAT_MODULE,"authorization.admin"));
       
       
        // Fire usage event.
        request.setAttribute("sectionid", StatsConfig.DETAILS_SECTION);
        new DSpace().getEventService().fireEvent(
                    new UsageEvent(
                            UsageEvent.Action.VIEW,
                            request,
                            context,
                            researcher));
View Full Code Here

Examples of org.dspace.utils.DSpace

      
        if (found)
        {
            // Fire usage event.
            request.setAttribute("sectionid", StatsConfig.COLLABORATION_NETWORK_SECTION);
            new DSpace().getEventService().fireEvent(
                        new UsageEvent(
                                UsageEvent.Action.VIEW,
                                request,
                                context,
                                researcher));       
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.