Package org.dspace.rest.entities

Examples of org.dspace.rest.entities.CommunityEntity


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

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


            UserRequestParams uparams = refreshParams(context);

            List<Object> entities = new ArrayList<Object>();
            Community[] communities = Community.findAllTop(context);
            for (Community c : communities) {
                entities.add(trim ? new CommunityEntityTrim(c, uparams) : new CommunityEntity(c, uparams));
            }

            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 CommunityEntity();
    }
View Full Code Here

TOP

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

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.