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

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

Introduction

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

Prototype

public static com.liferay.portal.kernel.model.RepositoryEntry getRepositoryEntryByUuidAndGroupId(String uuid,
        long groupId) throws com.liferay.portal.kernel.exception.PortalException 

Source Link

Document

Returns the repository entry matching the UUID and group.

Usage

From source file:com.liferay.document.library.internal.exportimport.data.handler.test.RepositoryStagedModelDataHandlerTest.java

License:Open Source License

@Override
protected void validateImport(Map<String, List<StagedModel>> dependentStagedModelsMap, Group group)
        throws Exception {

    List<StagedModel> dependentStagedModels = dependentStagedModelsMap
            .get(RepositoryEntry.class.getSimpleName());

    Assert.assertEquals(dependentStagedModels.toString(), 1, dependentStagedModels.size());

    RepositoryEntry repositoryEntry = (RepositoryEntry) dependentStagedModels.get(0);

    RepositoryEntryLocalServiceUtil.getRepositoryEntryByUuidAndGroupId(repositoryEntry.getUuid(),
            group.getGroupId());/* www .  j  a va2  s  .  c o  m*/
}