Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.asset.util;
import com.liferay.asset.kernel.model.AssetEntry;
import com.liferay.asset.kernel.model.AssetTag;
import com.liferay.asset.kernel.service.persistence.AssetEntryQuery;
import com.liferay.petra.string.CharPool;
import com.liferay.portal.kernel.model.Layout;
import com.liferay.portal.kernel.portlet.LiferayPortletRequest;
import com.liferay.portal.kernel.portlet.LiferayPortletResponse;
import com.liferay.portal.kernel.search.BaseModelSearchResult;
import com.liferay.portal.kernel.search.Hits;
import com.liferay.portal.kernel.search.SearchContext;
import java.io.Serializable;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import java.util.TimeZone;
import javax.portlet.PortletURL;
import javax.servlet.http.HttpServletRequest;
/**
* @author Eudaldo Alonso
*/
public interface AssetHelper {
public static final int ASSET_ENTRY_ABSTRACT_LENGTH = 200;
public static final char[] INVALID_CHARACTERS = {
CharPool.AMPERSAND, CharPool.APOSTROPHE, CharPool.AT,
CharPool.BACK_SLASH, CharPool.CLOSE_BRACKET, CharPool.CLOSE_CURLY_BRACE,
CharPool.COLON, CharPool.COMMA, CharPool.EQUAL, CharPool.GREATER_THAN,
CharPool.FORWARD_SLASH, CharPool.LESS_THAN, CharPool.NEW_LINE,
CharPool.OPEN_BRACKET, CharPool.OPEN_CURLY_BRACE, CharPool.PERCENT,
CharPool.PIPE, CharPool.PLUS, CharPool.POUND, CharPool.PRIME,
CharPool.QUESTION, CharPool.QUOTE, CharPool.RETURN, CharPool.SEMICOLON,
CharPool.SLASH, CharPool.STAR, CharPool.TILDE
};
public Set addLayoutTags(
HttpServletRequest request, List tags);
public PortletURL getAddPortletURL(
LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse, long groupId,
String className, long classTypeId, long[] allAssetCategoryIds,
String[] allAssetTagNames, String redirect)
throws Exception;
public String getAddURLPopUp(
long groupId, long plid, PortletURL addPortletURL,
boolean addDisplayPageParameter, Layout layout);
public List getAssetEntries(Hits hits);
public String getAssetKeywords(String className, long classPK);
public List getAssetPublisherAddItemHolders(
LiferayPortletRequest liferayPortletRequest,
LiferayPortletResponse liferayPortletResponse, long groupId,
long[] classNameIds, long[] classTypeIds,
long[] allAssetCategoryIds, String[] allAssetTagNames,
String redirect)
throws Exception;
public default boolean isValidWord(String word) {
return true;
}
public Hits search(
HttpServletRequest request, AssetEntryQuery assetEntryQuery,
int start, int end)
throws Exception;
public Hits search(
SearchContext searchContext, AssetEntryQuery assetEntryQuery,
int start, int end)
throws Exception;
public BaseModelSearchResult searchAssetEntries(
AssetEntryQuery assetEntryQuery, long[] assetCategoryIds,
String[] assetTagNames, Map attributes,
long companyId, String keywords, Layout layout, Locale locale,
long scopeGroupId, TimeZone timeZone, long userId, int start,
int end)
throws Exception;
public BaseModelSearchResult searchAssetEntries(
HttpServletRequest request, AssetEntryQuery assetEntryQuery,
int start, int end)
throws Exception;
public BaseModelSearchResult searchAssetEntries(
SearchContext searchContext, AssetEntryQuery assetEntryQuery,
int start, int end)
throws Exception;
}