Examples of ACrisObject


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

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

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

    @Override
    protected Map referenceData(HttpServletRequest request, Object command,
            Errors errors) throws Exception
    {
        Context context = UIUtil.obtainContext(request);
        ACrisObject cris = getCRISObject(request);
        AuthorizeManager.authorizeActionBoolean(context, cris, Constants.ADMIN, false);
       
        String relationType = getRelationType(request);
        Map<String, Object> data = new HashMap<String, Object>();
        String confName = relationService.getConfigurationName(cris,
View Full Code Here

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

    protected ModelAndView onSubmit(HttpServletRequest request,
            HttpServletResponse response, Object command, BindException errors)
            throws Exception
    {
        ACrisObject cris = getCRISObject(request);
        if (!"submit_exit".equalsIgnoreCase(UIUtil.getSubmitButton(request, "exit")))
        {
            Context context = UIUtil.obtainContext(request);
            ManageRelationDTO dto = (ManageRelationDTO) command;
            String relationType = getRelationType(request);
            boolean doneChange = false;
   
            doneChange = relationService.unlink(context, cris, relationType,
                    dto.getToUnLink())
                    || doneChange;
            doneChange = relationService.active(context, cris, relationType,
                    dto.getToActivate())
                    || doneChange;
            doneChange = relationService.hide(context, cris, relationType,
                    dto.getToHide())
                    || doneChange;
   
            List<String> newSelectedItems = dto.getOrderedSelected();
            doneChange = relationService.select(context, cris, relationType,
                    newSelectedItems) || doneChange;
   
            if (doneChange)
            {
                // make sure to commit the SOLR change
                ((SolrServiceImpl) searcher).commit();
            }
        }
        return new ModelAndView(getSuccessView() + cris.getUuid());
    }
View Full Code Here

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

       
    @Override
    protected List<String[]> addActiveTypeInRequest(HttpServletRequest request)
            throws Exception
    {
        ACrisObject cris = getCrisObject(request);
        Context c = UIUtil.obtainContext(request);
        List<String[]> subLinks = new ArrayList<String[]>();

        DiscoverResult docs = search(c, cris, 0, 0, null, true);
        if (docs.getTotalSearchResults() > 0)
View Full Code Here

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

        Context context = null;

        try
        {
            context = new Context();
            ACrisObject cris = getApplicationService().get(getTarget(), id);
            List<FacetResult> facetresults = search(context, cris, 0, 0, null, true).getFacetResult(type);
            if(facetresults.isEmpty()) {
                return 0;   
            }
            return facetresults.get(0).getCount();
View Full Code Here

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

    public String getMetadataDisplay(HttpServletRequest hrq, int limit,
            boolean viewFull, String browseType, int colIdx, String field,
            DCValue[] metadataArray, BrowseItem item,
            boolean disableCrossLinks, boolean emph, PageContext pageContext)
    {
        ACrisObject crisObject = (ACrisObject) ((BrowseDSpaceObject) item)
                .getBrowsableDSpaceObject();
        String metadata = "-";
        if (metadataArray.length > 0)
        {
            metadata = "<a href=\"" + hrq.getContextPath() + "/cris/"
                    + crisObject.getPublicPath() + "/"
                    + ResearcherPageUtils.getPersistentIdentifier(crisObject)
                    + "\">" + Utils.addEntities(metadataArray[0].value)
                    + "</a>";
        }
        metadata = (emph ? "<strong>" : "") + metadata
View Full Code Here

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

    public String getMetadataDisplay(HttpServletRequest hrq, int limit,
            boolean viewFull, String browseType, int colIdx, String field,
            DCValue[] metadataArray, BrowseItem item,
            boolean disableCrossLinks, boolean emph, PageContext pageContext)
    {
        ACrisObject crisObject = (ACrisObject) ((BrowseDSpaceObject) item)
                .getBrowsableDSpaceObject();
        String metadata = "";
       
        String persistentIdentifier = ResearcherPageUtils.getPersistentIdentifier(crisObject);
    metadata = "<a href=\"" + hrq.getContextPath() + "/cris/"
                    + crisObject.getPublicPath() + "/"
                    + persistentIdentifier
                    + "\">" + Utils.addEntities(persistentIdentifier)
                    + "</a>";
       
        metadata = (emph ? "<strong>" : "") + metadata
View Full Code Here

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

    private Class<ACrisObject> target;

    protected ACrisObject getCrisObject(HttpServletRequest request)
    {
        ACrisObject cris = (ACrisObject) request
                .getAttribute(this.getClass().getName() + "-"
                        + getRelationConfiguration().getRelationName());
        if (cris == null)
        {
            Integer entityID = (Integer) request.getAttribute("entityID");
View Full Code Here

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

    @Override
    public void evalute(HttpServletRequest request, HttpServletResponse response)
            throws Exception
    {
        ACrisObject cris = getCrisObject(request);
        // Get the query from the box name
        String type = getType(request);
        List<String[]> activeTypes = addActiveTypeInRequest(request);

        int start = 0;
View Full Code Here

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

            {
                for (StatisticDatasBeanRow row : myvalue.getLimitedDataTable())
                {
                    String pkey = (String)row.getLabel();
                   
                    ACrisObject object = ResearcherPageUtils.getCrisObject(Integer.parseInt(pkey), getRelationObjectClass());
                   
                    labels.addValue(row.getLabel(), "label", object.getName());
                   
                    if (object != null)
                    {
                        labels.addValue(type, row.getLabel(), object);
                    }
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.