use of com.zimbra.soap.account.type.Identity in project zm-mailbox by Zimbra.
the class TestAccess method CreateIdentity.
@Test
public void CreateIdentity() throws Exception {
String identityName = genIdentityName(seq);
Identity identity = Identity.fromName(identityName);
CreateIdentityRequest req = new CreateIdentityRequest(identity);
/*
XMLElement req = new XMLElement(AccountConstants.CREATE_IDENTITY_REQUEST);
Element identity = req.addElement(AccountConstants.E_IDENTITY);
identity.addAttribute(AccountConstants.A_NAME, identityName);
*/
accessTest(Perm.PERM_SELF_ONLY, req);
}
Aggregations