/** * Get a permission which is identical to this one, but with new actions which consist of the union of the actions * from this permission and the actions from the given permission. 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 withActionsFrom(This permission) { Assert.checkNotNullParam("permission", permission); return withActions(permission.getActions()); }
/** * Get a permission which is identical to this one, but with new actions which consist of the actions * from this permission without the actions from the given permission. 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 withoutActionsFrom(This permission) { Assert.checkNotNullParam("permission", permission); return withActions(permission.getActions()); }
/** * Get a permission which is identical to this one, but with new actions which consist of the union of the actions * from this permission and the actions from the given permission. 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 withActionsFrom(This permission) { Assert.checkNotNullParam("permission", permission); return withActions(permission.getActions()); }
/** * Get a permission which is identical to this one, but with new actions which consist of the actions * from this permission without the actions from the given permission. 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 withoutActionsFrom(This permission) { Assert.checkNotNullParam("permission", permission); return withActions(permission.getActions()); }
/** * Get a permission which is identical to this one, but with new actions which consist of the actions * from this permission without the actions from the given permission. 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 withoutActionsFrom(This permission) { Assert.checkNotNullParam("permission", permission); return withActions(permission.getActions()); }
/** * Get a permission which is identical to this one, but with new actions which consist of the union of the actions * from this permission and the actions from the given permission. 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 withActionsFrom(This permission) { Assert.checkNotNullParam("permission", permission); return withActions(permission.getActions()); }
/** * Get a permission which is identical to this one, but with new actions which consist of the union of the actions * from this permission and the actions from the given permission. 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 withActionsFrom(This permission) { Assert.checkNotNullParam("permission", permission); return withActions(permission.getActions()); }
/** * Get a permission which is identical to this one, but with new actions which consist of the actions * from this permission without the actions from the given permission. 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 withoutActionsFrom(This permission) { Assert.checkNotNullParam("permission", permission); return withActions(permission.getActions()); }