Examples of CollectionEntity


Examples of org.dspace.rest.entities.CollectionEntity

        try {
            context = new Context();
            refreshParams(context);

            if (entityExists(ref.getId())) {
                return new CollectionEntity(ref.getId(), context);
            }
        } catch (SQLException ex) {
            throw new EntityException("Internal server error", "SQL error", 500);
        } finally {
            removeConn(context);
View Full Code Here

Examples of org.dspace.rest.entities.CollectionEntity

            refreshParams(context);

            List<Object> entities = new ArrayList<Object>();
            Collection[] collections = ContentHelper.findAllCollection(context, _start, _limit);
            for (Collection c : collections) {
                entities.add(trim ? new CollectionEntityTrim(c) : new CollectionEntity(c));
            }

            return entities;
        } catch (SQLException ex) {
            throw new EntityException("Internal server error", "SQL error", 500);
View Full Code Here

Examples of org.dspace.rest.entities.CollectionEntity

            removeConn(context);
        }
    }

    public Object getSampleEntity() {
        return new CollectionEntity();
    }
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.