Package org.dspace.rest.entities

Examples of org.dspace.rest.entities.GroupEntity


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

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


            refreshParams(context);

            List<Object> entities = new ArrayList<Object>();
            Group[] groups = Group.findAll(context, Group.NAME);
            for (Group g : groups) {
                entities.add(new GroupEntity(g));
            }

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

            removeConn(context);
        }
    }

    public Object getSampleEntity() {
        return new GroupEntity();
    }
View Full Code Here

TOP

Related Classes of org.dspace.rest.entities.GroupEntity

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.