Package io.lumify.web.clientapi.model

Examples of io.lumify.web.clientapi.model.ClientApiWorkspaceUpdateData


        if (workspace == null) {
            respondWithNotFound(response);
            return;
        }

        ClientApiWorkspaceUpdateData updateData = ObjectMapperFactory.getInstance().readValue(data, ClientApiWorkspaceUpdateData.class);

        if (updateData.getTitle() != null) {
            setTitle(workspace, updateData.getTitle(), authUser);
        }

        updateEntities(workspace, updateData.getEntityUpdates(), authUser);

        deleteEntities(workspace, updateData.getEntityDeletes(), authUser);

        updateUsers(workspace, updateData.getUserUpdates(), authUser);

        workspace = workspaceRepository.findById(workspaceId, authUser);
        ClientApiWorkspace clientApiWorkspaceAfterUpdateButBeforeDelete = workspaceRepository.toClientApi(workspace, authUser, false);
        workQueueRepository.pushWorkspaceChange(clientApiWorkspaceAfterUpdateButBeforeDelete);

        deleteUsers(workspace, updateData.getUserDeletes(), authUser);

        respondWithSuccessJson(response);
    }
View Full Code Here

TOP

Related Classes of io.lumify.web.clientapi.model.ClientApiWorkspaceUpdateData

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.