Example usage for com.liferay.portal.util RepositoryUtil isExternalRepository

List of usage examples for com.liferay.portal.util RepositoryUtil isExternalRepository

Introduction

In this page you can find the example usage for com.liferay.portal.util RepositoryUtil isExternalRepository.

Prototype

public static boolean isExternalRepository(long repositoryId) 

Source Link

Usage

From source file:com.liferay.document.library.internal.service.ExternalRepositoryDLAppHelperLocalServiceWrapper.java

License:Open Source License

private boolean _isEnabled(FileEntry fileEntry) {
    if (!DLAppHelperThreadLocal.isEnabled()) {
        return false;
    }//w  w w  .  j ava  2 s  . com

    if (RepositoryUtil.isExternalRepository(fileEntry.getRepositoryId())) {
        return false;
    }

    return true;
}

From source file:com.liferay.document.library.internal.service.ExternalRepositoryDLAppHelperLocalServiceWrapper.java

License:Open Source License

private boolean _isEnabled(Folder folder) {
    if (!DLAppHelperThreadLocal.isEnabled()) {
        return false;
    }/*from  w w  w  .j a v  a 2 s  .com*/

    if (!folder.isMountPoint() && RepositoryUtil.isExternalRepository(folder.getRepositoryId())) {

        return false;
    }

    return true;
}