Package org.dspace.app.cris.model

Examples of org.dspace.app.cris.model.ACrisObject


    @Override
    public ModelAndView handleRequest(HttpServletRequest request,
            HttpServletResponse response) throws Exception
    {       
        String uuid = extractUUID(request);
        ACrisObject crisObject = getApplicationService().getEntityByUUID(uuid);
        return new ModelAndView("redirect:/cris/"+ crisObject.getPublicPath() + "/" + ResearcherPageUtils.getPersistentIdentifier(crisObject));    
    }
View Full Code Here


        String uuid = arg0.getParameter("uuid");       
        if(uuid==null || uuid.isEmpty()) {
            return null;
        }       
        rpSubService.subscribe(UIUtil.obtainContext(arg0).getCurrentUser(), uuid);
        ACrisObject acrisobject = applicationService.getEntityByUUID(uuid);
        return new ModelAndView(getViewName()+ "/" + acrisobject.getPublicPath() +"/"+ acrisobject.getCrisID() +"?subscribe=true");
    }
View Full Code Here

        String uuid = arg0.getParameter("uuid");       
        if(uuid==null || uuid.isEmpty()) {
            return null;
        }       
        rpSubService.unsubscribe(UIUtil.obtainContext(arg0).getCurrentUser(), uuid);
        ACrisObject acrisobject = applicationService.getEntityByUUID(uuid);
        return new ModelAndView(getViewName()+ "/" + acrisobject.getPublicPath() +"/"+ acrisobject.getCrisID() +"?subscribe=false");
    }
View Full Code Here

            List<DSpaceObject> objects = getSearchService().search(context,
                    query + "*", null, true, 0, Integer.MAX_VALUE, filtro);
            for (DSpaceObject obj : objects)
            {
                ACrisObject real = (ACrisObject) obj;
                String display = (String) DisplayPointerTagLibrary.evaluate(
                        obj, expression);
                SelectableDTO dto = new SelectableDTO(
                        real.getIdentifyingValue(), display);
                results.add(dto);
            }

        }
        catch (Exception e)
View Full Code Here

                    SearchService.class.getName(), CrisSearchService.class);

    private ACrisObject getCRISObject(HttpServletRequest request)
    {
        String uuid = getUUID(request);
        ACrisObject cris = applicationService.getEntityByUUID(uuid);
        return cris;
    }
View Full Code Here

    @Override
    protected ModelAndView handleRequestInternal(HttpServletRequest request,
            HttpServletResponse response) throws Exception
    {
        Context context = UIUtil.obtainContext(request);
        ACrisObject cris = getCRISObject(request);
        String relationType = getRelationType(request);
        String fQuery = getSearchQuery(request);
        String status = getFilterStatus(request);
        List<Sort> sorts = getSorts(request);
        int rpp = getRpp(request);
View Full Code Here

                List<Choice> choiceList = new ArrayList<Choice>();

                for (DSpaceObject dso : result.getDspaceObjects())
                {
                    ACrisObject cris = (ACrisObject) dso;
                    choiceList.add(new Choice(ResearcherPageUtils
                            .getPersistentIdentifier(cris), cris.getName(),
                            cris.getName()));
                }

                Choice[] results = new Choice[choiceList.size()];
                results = choiceList.toArray(results);
                return new Choices(results, 0, results.length,
View Full Code Here

        {
            log.error(LogManager.getHeader(null, "getLabel",
                    "invalid key for authority key " + key));
            return null;
        }
        ACrisObject cris = applicationService.get(getCRISTargetClass(), id);
        if (cris != null)
        {
            return cris.getName();
        }
        return null;
    }
View Full Code Here

        }
        for (P prop : props)
        {
            if (prop.getObject() instanceof ACrisObject)
            {
                ACrisObject val = (ACrisObject) prop.getObject();
                result.add(new String[] { val.getName(),
                        ResearcherPageUtils.getPersistentIdentifier(val) });
            }
            else
            {
                PropertyEditor editor = prop.getTypo().getRendering()
View Full Code Here

     * Format the cris suffix identifier starting from the db internal primary key
     * key
    */
    private static String formatIdentifier(Integer rp, Class className)
    {
        ACrisObject crisObject = (ACrisObject) applicationService.get(
                className, rp);
        String crisId = crisObject.getCrisID();
        if (crisId != null && !crisId.isEmpty())
        {
            return crisId;   
        }
        return crisObject.getAuthorityPrefix()
                + persIdentifierFormat.format(rp);
    }
View Full Code Here

TOP

Related Classes of org.dspace.app.cris.model.ACrisObject

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.