@VisibleForTesting
    public void touch(final boolean includeMembershipResource, final Calendar createdDate, final String createdUser,
                      final Calendar modifiedDate, final String modifyingUser) throws RepositoryException {
        FedoraTypesUtils.touch(getNode(), createdDate, createdUser, modifiedDate, modifyingUser);

        // If the ldp:insertedContentRelation property was changed, update the
        // ldp:membershipResource resource.
        if (includeMembershipResource) {
            touchLdpMembershipResource(getNode(), modifiedDate, modifyingUser);
        }
    }
@ VisibleForTesting public void touch ( final boolean includeMembershipResource , final Calendar createdDate , final String createdUser , final Calendar modifiedDate , final String modifyingUser ) throws RepositoryException { FedoraTypesUtils . touch ( getNode ( ) , createdDate , createdUser , modifiedDate , modifyingUser ) ; if ( includeMembershipResource ) { touchLdpMembershipResource ( getNode ( ) , modifiedDate , modifyingUser ) ; } }
Touches a resource to ensure that the implicitly updated properties are updated if
not explicitly set.
@param includeMembershipResource true if this touch should propagate through to
ldp membership resources
@param createdDate the date to which the created date should be set or null to leave it unchanged
@param createdUser the user to which the created by should be set or null to leave it unchanged
@param modifiedDate the date to which the modified date should be set or null to use now
@param modifyingUser the user making the modification or null to use the current user
@throws RepositoryException an error occurs while updating the repository