Examples of assignUserAsContentAdmin()


Examples of gwtappcontainer.server.apps.content.ContentAPI.assignUserAsContentAdmin()

     
    //assign this tag to user
    helper.loginAsPortalAdmin();
    User user = UserServiceFactory.getUserService().getCurrentUser();
    ContentAPI contentApi = new ContentAPI();
    APIResponse resp = contentApi.assignUserAsContentAdmin(email,
        tag, user);
    assertTrue(resp.statusCode == Status.SUCCESS);
   
    //check if role exists
    AdminAPI adminApi = new AdminAPI();
View Full Code Here

Examples of gwtappcontainer.server.apps.content.ContentAPI.assignUserAsContentAdmin()

    addNewTag(tag);
     
    //login as developer and assign this tag to user   
    ContentAPI contentApi = new ContentAPI();
   
    APIResponse response = contentApi.assignUserAsContentAdmin(email, tag,
        helper.loginAsDeveloper());
    assertTrue(response.statusCode == Status.ERROR_INSUFFICIENT_PERMISSION);   
  }
 
  @Test
View Full Code Here

Examples of gwtappcontainer.server.apps.content.ContentAPI.assignUserAsContentAdmin()

    String email = "test@example.com";
    addNewUser(email);
   
    ContentAPI api = new ContentAPI();
   
    APIResponse resp = api.assignUserAsContentAdmin(email, tag,
        helper.loginAsPortalAdmin());
    assertTrue(resp.statusCode == Status.SUCCESS);
   
    String content = "dummy content";
    User user = helper.loginAs(email);
View Full Code Here

Examples of gwtappcontainer.server.apps.content.ContentAPI.assignUserAsContentAdmin()

    assertTrue(! all.containsKey("testtag"));
   
    //add a user as content admin
    AdminAPI adminAPI = new AdminAPI();
    adminAPI.addUser("contentadmin@test.com", helper.loginAsPortalAdmin());
    contentAPI.assignUserAsContentAdmin("contentadmin@test.com",
        "testtag", helper.loginAsPortalAdmin());
   
    //publish to true
    contentAPI.setPublishStatus("testtag", true,
        helper.loginAs("contentadmin@test.com"));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.