Example usage for com.liferay.portal.kernel.transaction Propagation REQUIRED

List of usage examples for com.liferay.portal.kernel.transaction Propagation REQUIRED

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.transaction Propagation REQUIRED.

Prototype

Propagation REQUIRED

To view the source code for com.liferay.portal.kernel.transaction Propagation REQUIRED.

Click Source Link

Document

Support a current transaction, create a new one if none exists.

Usage

From source file:com.sohlman.liferay.bffss.BackupFriendlyFileSystemStore.java

License:Open Source License

@Override
@Transactional(propagation = Propagation.REQUIRED)
public InputStream getFileAsStream(long companyId, long repositoryId, String fileName) throws PortalException {

    return _fileInfoLocalService.getFileAsStream(companyId, repositoryId, fileName);
}

From source file:com.sohlman.liferay.bffss.BackupFriendlyFileSystemStore.java

License:Open Source License

@Override
@Transactional(propagation = Propagation.REQUIRED)
public InputStream getFileAsStream(long companyId, long repositoryId, String fileName, String versionLabel)
        throws PortalException {

    return _fileInfoLocalService.getFileAsStream(companyId, repositoryId, fileName, versionLabel);
}