Example usage for com.liferay.portal.kernel.util TempFileEntryUtil getTempFileNames

List of usage examples for com.liferay.portal.kernel.util TempFileEntryUtil getTempFileNames

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util TempFileEntryUtil getTempFileNames.

Prototype

public static String[] getTempFileNames(long groupId, long userId, String folderName) throws PortalException 

Source Link

Usage

From source file:ch.inofix.contact.service.impl.ContactServiceImpl.java

License:Open Source License

@Override
public String[] getTempFileNames(long groupId, String folderName) throws PortalException {

    ContactManagerPortletPermission.check(getPermissionChecker(), groupId,
            ContactManagerActionKeys.EXPORT_IMPORT_CONTACTS);

    return TempFileEntryUtil.getTempFileNames(groupId, getUserId(),
            DigesterUtil.digestHex(Digester.SHA_256, folderName));
}

From source file:ch.inofix.data.service.impl.MeasurementServiceImpl.java

License:Open Source License

@Override
public String[] getTempFileNames(long groupId, String folderName) throws PortalException {

    DataManagerPortletPermission.check(getPermissionChecker(), groupId,
            MeasurementActionKeys.EXPORT_IMPORT_MEASUREMENTS);

    return TempFileEntryUtil.getTempFileNames(groupId, getUserId(),
            DigesterUtil.digestHex(Digester.SHA_256, folderName));
}

From source file:com.liferay.knowledgebase.service.impl.KBArticleLocalServiceImpl.java

License:Open Source License

@Override
public String[] getTempAttachmentNames(long groupId, long userId, String tempFolderName)
        throws PortalException {

    return TempFileEntryUtil.getTempFileNames(groupId, userId, tempFolderName);
}

From source file:com.liferay.wiki.service.impl.WikiPageLocalServiceImpl.java

License:Open Source License

@Override
public String[] getTempFileNames(long groupId, long userId, String folderName) throws PortalException {

    return TempFileEntryUtil.getTempFileNames(groupId, userId, folderName);
}