/** * Get a permission which is identical to this one, but with new actions as given by {@code actionsString}. * The returned permission may or may not be a new instance, and may be equal to this instance. * * @param permission the other permission (must not be {@code null}) * @return the permission (not {@code null}) */ public This withNewActionsFrom(This permission) { Assert.checkNotNullParam("permission", permission); return withNewActions(permission.getActions()); } }
/** * Get a permission which is identical to this one, but with new actions as given by {@code actionsString}. * The returned permission may or may not be a new instance, and may be equal to this instance. * * @param permission the other permission (must not be {@code null}) * @return the permission (not {@code null}) */ public This withNewActionsFrom(This permission) { Assert.checkNotNullParam("permission", permission); return withNewActions(permission.getActions()); } }
/** * Get a permission which is identical to this one, but with new actions as given by {@code actionsString}. * The returned permission may or may not be a new instance, and may be equal to this instance. * * @param permission the other permission (must not be {@code null}) * @return the permission (not {@code null}) */ public This withNewActionsFrom(This permission) { Assert.checkNotNullParam("permission", permission); return withNewActions(permission.getActions()); } }
/** * Get a permission which is identical to this one, but with new actions as given by {@code actionsString}. * The returned permission may or may not be a new instance, and may be equal to this instance. * * @param permission the other permission (must not be {@code null}) * @return the permission (not {@code null}) */ public This withNewActionsFrom(This permission) { Assert.checkNotNullParam("permission", permission); return withNewActions(permission.getActions()); } }