@Test(expectedExceptions = IllegalArgumentException.class) public void testCreateWithProfileIdWithNullRole() throws Exception { WarehouseUser.createWithProfileUri(PROFILE, null); }
public static WarehouseUser createWithProfileUri(final String profileUri, final WarehouseUserRole role) { notNull(role, "role cannot be null"); return new WarehouseUser(role.getRoleName(), profileUri, null); }
WarehouseUser { public static WarehouseUser createWithProfileUri(final String profileUri, final WarehouseUserRole role) { notNull(role, "role cannot be null"); return new WarehouseUser(role.getRoleName(), profileUri, null); } }
WarehouseUser { public static WarehouseUser createWithProfileUri(final String profileUri, final WarehouseUserRole role) { notNull(role, "role cannot be null"); return new WarehouseUser(role.getRoleName(), profileUri, null); } WarehouseUser(final String role, final String profile, final String login); @JsonCreator  WarehouseUser(@JsonProperty("role") String role, @JsonProperty("profile") String profile,
                         @JsonProperty("login") String login, @JsonProperty("links") Map<String, String> links); }
WarehouseUser { public static WarehouseUser createWithProfileUri(final String profileUri, final WarehouseUserRole role) { notNull(role, "role cannot be null"); return new WarehouseUser(role.getRoleName(), profileUri, null); } WarehouseUser(final String role, final String profile, final String login); @JsonCreator  WarehouseUser(@JsonProperty("role") String role, @JsonProperty("profile") String profile,
                         @JsonProperty("login") String login, @JsonProperty("links") Map<String, String> links); static WarehouseUser createWithProfileUri(final String profileUri, final WarehouseUserRole role); static WarehouseUser createWithProfile(final Account profile, final WarehouseUserRole role); static WarehouseUser createWithlogin(final String login, final WarehouseUserRole role); String getRole(); String getProfile(); String getLogin(); Map<String, String> getLinks(); @JsonIgnore String getId(); @JsonIgnore String getUri(); @Override String toString(); }
WarehouseUser { public static WarehouseUser createWithProfileUri(final String profileUri, final WarehouseUserRole role) { notNull(role, "role cannot be null"); return new WarehouseUser(role.getRoleName(), profileUri, null); } WarehouseUser(final String role, final String profile, final String login); @JsonCreator  WarehouseUser(@JsonProperty("role") String role, @JsonProperty("profile") String profile,
                         @JsonProperty("login") String login, @JsonProperty("links") Map<String, String> links); static WarehouseUser createWithProfileUri(final String profileUri, final WarehouseUserRole role); static WarehouseUser createWithProfile(final Account profile, final WarehouseUserRole role); static WarehouseUser createWithlogin(final String login, final WarehouseUserRole role); String getRole(); String getProfile(); String getLogin(); Map<String, String> getLinks(); @JsonIgnore String getId(); @JsonIgnore String getUri(); @Override String toString(); static final String URI; }