/** * Adds an authority to perform one or more activities on a resource. * * @param endpoint The endpoint segment of the resource. * @param tenant The tenant segment of the resource. * @param activities The activities. * @return This instance for command chaining. */ public AuthoritiesImpl addResource(final String endpoint, final String tenant, final Activity... activities) { final StringBuilder b = new StringBuilder(); for (final Activity a : activities) { b.append(a.getCode()); } authorities.put(getResourceKey(endpoint, tenant), b.toString()); return this; }
/** * Adds an authority to perform one or more activities on a resource. * * @param endpoint The endpoint segment of the resource. * @param tenant The tenant segment of the resource. * @param activities The activities. * @return This instance for command chaining. */ public AuthoritiesImpl addResource(final String endpoint, final String tenant, final Activity... activities) { final StringBuilder b = new StringBuilder(); for (final Activity a : activities) { b.append(a.getCode()); } authorities.put(getResourceKey(endpoint, tenant), b.toString()); return this; }