Package org.globus.workspace.service

Examples of org.globus.workspace.service.GroupResource


    // default configuration has this provided on the fly via IoC
    protected abstract GroupResource newEmptyResource();

    public GroupResource newGroup(String creatorID) throws ManageException {

        final GroupResource resource = this.newEmptyResource();
       
        final String idStr = this.uuidGen.generateRandomBasedUUID().toString();

        final Lock lock = this.lockManager.getLock(idStr);
        try {
            lock.lockInterruptibly();
        } catch (InterruptedException e) {
            throw new ManageException(e.getMessage(), e);
        }

        try {

            resource.setID(idStr);
            resource.setCreatorID(creatorID);
            this.persistence.addGroup(resource);

            final Element el = this.cache.get(idStr);
            if (el == null) {
                this.cache.put(new Element(idStr, resource));
View Full Code Here


       
        if (groupid == null) {
            throw new ManageException("groupid may not be null");
        }

        final GroupResource resource;

        final Lock lock = this.lockManager.getLock(groupid);
        try {
            lock.lockInterruptibly();
        } catch (InterruptedException e) {
View Full Code Here

        } catch (InterruptedException e) {
            throw new ManageException(e.getMessage(), e);
        }

        try {
            final GroupResource resource = this.find(groupid);
            resource.remove();
            this.cache.remove(groupid);

        } finally {
            lock.unlock();
        }
View Full Code Here

TOP

Related Classes of org.globus.workspace.service.GroupResource

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.