Example usage for com.liferay.portal.kernel.service RepositoryEntryLocalServiceUtil updateRepositoryEntry

List of usage examples for com.liferay.portal.kernel.service RepositoryEntryLocalServiceUtil updateRepositoryEntry

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.service RepositoryEntryLocalServiceUtil updateRepositoryEntry.

Prototype

public static com.liferay.portal.kernel.model.RepositoryEntry updateRepositoryEntry(long repositoryEntryId,
            String mappedId) throws com.liferay.portal.kernel.exception.PortalException 

Source Link

Usage

From source file:com.liferay.document.library.repository.cmis.internal.CMISRepository.java

License:Open Source License

protected void updateMappedId(long repositoryEntryId, String mappedId) throws PortalException {

    RepositoryEntry repositoryEntry = repositoryEntryLocalService.getRepositoryEntry(repositoryEntryId);

    if (!mappedId.equals(repositoryEntry.getMappedId())) {
        RepositoryEntryLocalServiceUtil.updateRepositoryEntry(repositoryEntryId, mappedId);
    }//from  w w w  . j a v a  2  s  .c  o  m
}