Package com.heroku.api.request.sharing

Examples of com.heroku.api.request.sharing.SharingRemove


     * Remove a collaborator from an app.
     * @param appName App name. See {@link #listApps} for a list of apps that can be used.
     * @param collaborator See {@link #listCollaborators} for collaborators that can be removed from the app.
     */
    public void removeCollaborator(String appName, String collaborator) {
        connection.execute(new SharingRemove(appName, collaborator), apiKey);
    }
View Full Code Here


    public void testSharingRemoveCommand(App app) throws IOException {
        SharingAdd sharingAddCommand = new SharingAdd(app.getName(), sharingUser.getUsername());
        Unit sharingAddResp = connection.execute(sharingAddCommand, apiKey);
        assertNotNull(sharingAddResp);

        SharingRemove cmd = new SharingRemove(app.getName(), sharingUser.getUsername());
        Unit response = connection.execute(cmd, apiKey);
        assertNotNull(response);

        CollabList collabList = new CollabList(app.getName());
        assertCollaboratorNotPresent(sharingUser.getUsername(), collabList);
View Full Code Here

TOP

Related Classes of com.heroku.api.request.sharing.SharingRemove

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.