NCMBAcl { public boolean isEmpty() { return userAcl.isEmpty() || roleAcl.isEmpty(); } NCMBAcl();  NCMBAcl(JSONObject json); void parse(JSONObject input); JSONObject toJson(); boolean isEmpty(); void setAccess(String userId, Permission permission); void setRoleAccess(String roleName, Permission permission); Permission getAccess(String userId); Permission getRoleAccess(String roleName); boolean removePermission(String userId); boolean removeRolePermission(String roleName); boolean getReadAccess(String userId); boolean getWriteAccess(String userId); boolean getRoleReadAccess(String roleName); boolean getRoleWriteAccess(String roleName); void setReadAccess(String userId, boolean allowed); void setWriteAccess(String userId, boolean allowed); void setRoleReadAccess(String roleName, boolean allowed); void setRoleWriteAccess(String roleName, boolean allowed); boolean getPublicReadAccess(); boolean getPublicWriteAccess(); void setPublicReadAccess(boolean allowed); void setPublicWriteAccess(boolean allowed); static final String ACL_PUBLIC; static final String PREFIX_ROLE; }
@Test public void ACL_ACLの初期値() throws Exception { NCMBAcl acl = new NCMBAcl(); Assert.assertTrue(acl.isEmpty()); }