/** * Adds an authority to execute an operation. * * @param endpoint The endpoint segment of the resource the operation belongs to. * @param tenant The tenant segment of the resource the operation belongs to. * @param operation The operation. * @return This instance for command chaining. */ public AuthoritiesImpl addOperation(final String endpoint, final String tenant, final String operation) { authorities.put(getOperationKey(endpoint, tenant, operation), String.valueOf(Activity.EXECUTE.getCode())); return this; }
/** * Adds an authority to execute an operation. * * @param endpoint The endpoint segment of the resource the operation belongs to. * @param tenant The tenant segment of the resource the operation belongs to. * @param operation The operation. * @return This instance for command chaining. */ public AuthoritiesImpl addOperation(final String endpoint, final String tenant, final String operation) { authorities.put(getOperationKey(endpoint, tenant, operation), String.valueOf(Activity.EXECUTE.getCode())); return this; }