Package org.dspace.app.cris.model

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


            Class className)
    {
        try
        {
            String id = authorityKey.substring(2);
            ACrisObject crisObject = applicationService.getEntityByCrisId(
                    authorityKey, className);
            if (crisObject != null)
            {
                 return crisObject.getId();
            }
            return Integer.parseInt(id);
        }
        catch (NumberFormatException e)
        {
View Full Code Here


                uuid);
        if (rpsub == null)
        {
            rpsub = new CrisSubscription();
            rpsub.setEpersonID(e.getID());
            ACrisObject aco = applicationService.getEntityByUUID(uuid);
            rpsub.setTypeDef(aco.getType());
            rpsub.setUuid(uuid);
            applicationService.saveOrUpdate(CrisSubscription.class, rpsub);
        }
    }
View Full Code Here

                            valuesAttributes);

                }
                if (prop.getTypo().getRendering() instanceof WidgetPointer)
                {
                    ACrisObject aCrisObject = (ACrisObject) pe.getValue();

                    List<String> attributes = new LinkedList<String>();
                    List<String> valuesAttributes = new LinkedList<String>();
                    attributes.add(NAMEATTRIBUTE_VISIBILITY);
                    valuesAttributes.add(prop.getVisibility().toString());
                    attributes.add(NAMEATTRIBUTE_CRIS_POINTER_AUTHORITY);
                    valuesAttributes.add(aCrisObject.getCrisID());
                    attributes.add(NAMEATTRIBUTE_CRIS_POINTER_UUID);
                    valuesAttributes.add(aCrisObject.getUuid());
                    attributes.add(NAMEATTRIBUTE_CRIS_POINTER_TYPE);
                    valuesAttributes.add(aCrisObject.getType() + "");
                    ExportUtils.createCustomValueWithCustomAttributes(element,
                            shortName, aCrisObject.getName(), attributes,
                            valuesAttributes);

                }
                if (prop.getTypo().getRendering() instanceof WidgetFile)
                {
View Full Code Here

        {
            // nothing to do
            return;
        }

        ACrisObject cris = (ACrisObject) object;

        try
        {
            crisSearchService.indexCrisObject(cris, false);   
        }
        catch (Exception e)
        {
            log.error("Failed to update CRIS metadata in discovery index for cris-"
                    + cris.getPublicPath() + " uuid:"+cris.getUuid());
            emailException(e);
        }
    }
View Full Code Here

        {
            // nothing to do
            return;
        }

        ACrisObject cris = (ACrisObject) object;

        try
        {
            crisSearchService.unIndexContent(null, cris, false);   
        }
        catch (Exception e)
        {
            log.error("Failed to remove CRIS metadata in discovery index for cris-"
                    + cris.getPublicPath() + " uuid:"+cris.getUuid());
            emailException(e);
        }
   }
View Full Code Here

            Map<String, Map<String,ObjectCount[]>> selectedObject = new HashMap<String, Map<String,ObjectCount[]>>();
            Map<String, Map<String,ObjectCount[]>> topObject = new TreeMap<String, Map<String,ObjectCount[]>>();
            if (type >= 9)
            {

                ACrisObject object = as.getEntityByUUID(uuid);
                String persistentIdentifier = ResearcherPageUtils
                        .getPersistentIdentifier(object);

                statBean.setObject(object);
                statBean.setObjectName(object.getName());

                statBean.setObjectURL(ConfigurationManager
                        .getProperty("dspace.url")
                        + "/cris/"
                        + object.getPublicPath() + "/" + persistentIdentifier);
                statBean.setStatURL(ConfigurationManager
                        .getProperty("dspace.url")
                        + "/cris/stats/"
                        + object.getPublicPath()
                        + ".html?id="
                        + object.getUuid());

                statBean.setType(object.getType());
                               
                selectedObject = new HashMap<String, Map<String,ObjectCount[]>>();
               
                CrisStatComponentsService statsComponentsService = null;
                switch (type)
View Full Code Here

    public List<ACrisObject> getListByUUIDs(List<String> uuidS)
    {
        List<ACrisObject> result = new ArrayList<ACrisObject>();
        for (String uuid : uuidS)
        {
            ACrisObject object = getEntityByUUID(uuid);
            result.add(object);
        }
        return result;
    }
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.