Liferay 7.0-ce-b4

com.liferay.portlet.asset.service
Class AssetEntryLocalServiceUtil

java.lang.Object
  extended by com.liferay.portlet.asset.service.AssetEntryLocalServiceUtil

@ProviderType
public class AssetEntryLocalServiceUtil
extends Object

Provides the local service utility for AssetEntry. This utility wraps AssetEntryLocalServiceImpl and is the primary access point for service operations in application layer code running on the local server. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

See Also:
AssetEntryLocalService, AssetEntryLocalServiceBaseImpl, AssetEntryLocalServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
AssetEntryLocalServiceUtil()
           
 
Method Summary
static void addAssetCategoryAssetEntries(long categoryId, List<AssetEntry> AssetEntries)
           
static void addAssetCategoryAssetEntries(long categoryId, long[] entryIds)
           
static void addAssetCategoryAssetEntry(long categoryId, AssetEntry assetEntry)
           
static void addAssetCategoryAssetEntry(long categoryId, long entryId)
           
static AssetEntry addAssetEntry(AssetEntry assetEntry)
          Adds the asset entry to the database.
static void addAssetTagAssetEntries(long tagId, List<AssetEntry> AssetEntries)
           
static void addAssetTagAssetEntries(long tagId, long[] entryIds)
           
static void addAssetTagAssetEntry(long tagId, AssetEntry assetEntry)
           
static void addAssetTagAssetEntry(long tagId, long entryId)
           
static void clearAssetCategoryAssetEntries(long categoryId)
           
static void clearAssetTagAssetEntries(long tagId)
           
static AssetEntry createAssetEntry(long entryId)
          Creates a new asset entry with the primary key.
static void deleteAssetCategoryAssetEntries(long categoryId, List<AssetEntry> AssetEntries)
           
static void deleteAssetCategoryAssetEntries(long categoryId, long[] entryIds)
           
static void deleteAssetCategoryAssetEntry(long categoryId, AssetEntry assetEntry)
           
static void deleteAssetCategoryAssetEntry(long categoryId, long entryId)
           
static AssetEntry deleteAssetEntry(AssetEntry assetEntry)
          Deletes the asset entry from the database.
static AssetEntry deleteAssetEntry(long entryId)
          Deletes the asset entry with the primary key from the database.
static void deleteAssetTagAssetEntries(long tagId, List<AssetEntry> AssetEntries)
           
static void deleteAssetTagAssetEntries(long tagId, long[] entryIds)
           
static void deleteAssetTagAssetEntry(long tagId, AssetEntry assetEntry)
           
static void deleteAssetTagAssetEntry(long tagId, long entryId)
           
static void deleteEntry(AssetEntry entry)
           
static void deleteEntry(long entryId)
           
static void deleteEntry(String className, long classPK)
           
static void deleteGroupEntries(long groupId)
           
static PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
static DynamicQuery dynamicQuery()
           
static
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
static
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
static
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
static long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows matching the dynamic query.
static long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows matching the dynamic query.
static AssetEntry fetchAssetEntry(long entryId)
           
static AssetEntry fetchEntry(long entryId)
           
static AssetEntry fetchEntry(long groupId, String classUuid)
           
static AssetEntry fetchEntry(String className, long classPK)
           
static ActionableDynamicQuery getActionableDynamicQuery()
           
static List<AssetEntry> getAncestorEntries(long entryId)
           
static List<AssetEntry> getAssetCategoryAssetEntries(long categoryId)
           
static List<AssetEntry> getAssetCategoryAssetEntries(long categoryId, int start, int end)
           
static List<AssetEntry> getAssetCategoryAssetEntries(long categoryId, int start, int end, OrderByComparator<AssetEntry> orderByComparator)
           
static int getAssetCategoryAssetEntriesCount(long categoryId)
           
static long[] getAssetCategoryPrimaryKeys(long entryId)
          Returns the categoryIds of the asset categories associated with the asset entry.
static List<AssetEntry> getAssetEntries(int start, int end)
          Returns a range of all the asset entries.
static int getAssetEntriesCount()
          Returns the number of asset entries.
static AssetEntry getAssetEntry(long entryId)
          Returns the asset entry with the primary key.
static List<AssetEntry> getAssetTagAssetEntries(long tagId)
           
static List<AssetEntry> getAssetTagAssetEntries(long tagId, int start, int end)
           
static List<AssetEntry> getAssetTagAssetEntries(long tagId, int start, int end, OrderByComparator<AssetEntry> orderByComparator)
           
static int getAssetTagAssetEntriesCount(long tagId)
           
static long[] getAssetTagPrimaryKeys(long entryId)
          Returns the tagIds of the asset tags associated with the asset entry.
static List<AssetEntry> getChildEntries(long entryId)
           
static List<AssetEntry> getCompanyEntries(long companyId, int start, int end)
           
static int getCompanyEntriesCount(long companyId)
           
static List<AssetEntry> getEntries(AssetEntryQuery entryQuery)
           
static List<AssetEntry> getEntries(long[] groupIds, long[] classNameIds, String keywords, String userName, String title, String description, Boolean listable, boolean advancedSearch, boolean andOperator, int start, int end, String orderByCol1, String orderByCol2, String orderByType1, String orderByType2)
           
static int getEntriesCount(AssetEntryQuery entryQuery)
           
static int getEntriesCount(long[] groupIds, long[] classNameIds, String keywords, String userName, String title, String description, Boolean listable, boolean advancedSearch, boolean andOperator)
           
static AssetEntry getEntry(long entryId)
           
static AssetEntry getEntry(long groupId, String classUuid)
           
static AssetEntry getEntry(String className, long classPK)
           
static List<AssetEntry> getGroupEntries(long groupId)
           
static IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
           
static AssetEntry getNextEntry(long entryId)
           
static String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
static AssetEntry getParentEntry(long entryId)
           
static PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
static AssetEntry getPreviousEntry(long entryId)
           
static AssetEntryLocalService getService()
           
static List<AssetEntry> getTopViewedEntries(String[] className, boolean asc, int start, int end)
           
static List<AssetEntry> getTopViewedEntries(String className, boolean asc, int start, int end)
           
static boolean hasAssetCategoryAssetEntries(long categoryId)
           
static boolean hasAssetCategoryAssetEntry(long categoryId, long entryId)
           
static boolean hasAssetTagAssetEntries(long tagId)
           
static boolean hasAssetTagAssetEntry(long tagId, long entryId)
           
static AssetEntry incrementViewCounter(long userId, String className, long classPK)
           
static void incrementViewCounter(long userId, String className, long classPK, int increment)
           
static void reindex(List<AssetEntry> entries)
           
static Hits search(long companyId, long[] groupIds, long userId, String className, long classTypeId, String keywords, boolean showNonindexable, int[] statuses, int start, int end)
           
static Hits search(long companyId, long[] groupIds, long userId, String className, long classTypeId, String keywords, boolean showNonindexable, int status, int start, int end)
           
static Hits search(long companyId, long[] groupIds, long userId, String className, long classTypeId, String keywords, int status, int start, int end)
           
static Hits search(long companyId, long[] groupIds, long userId, String className, long classTypeId, String userName, String title, String description, String assetCategoryIds, String assetTagNames, boolean showNonindexable, int[] statuses, boolean andSearch, int start, int end)
           
static Hits search(long companyId, long[] groupIds, long userId, String className, long classTypeId, String userName, String title, String description, String assetCategoryIds, String assetTagNames, boolean showNonindexable, int status, boolean andSearch, int start, int end)
           
static Hits search(long companyId, long[] groupIds, long userId, String className, long classTypeId, String userName, String title, String description, String assetCategoryIds, String assetTagNames, int status, boolean andSearch, int start, int end)
           
static Hits search(long companyId, long[] groupIds, long userId, String className, String keywords, int start, int end)
          Deprecated. As of 6.2.0, replaced by search(long, long[], long, String, String, int, int, int)
static Hits search(long companyId, long[] groupIds, long userId, String className, String keywords, int status, int start, int end)
           
static Hits search(long companyId, long[] groupIds, long userId, String className, String userName, String title, String description, String assetCategoryIds, String assetTagNames, boolean andSearch, int start, int end)
          Deprecated. As of 6.2.0, replaced by search(long, long[], long, String, String, String, String, String, String, int, boolean, int, int)
static Hits search(long companyId, long[] groupIds, long userId, String className, String userName, String title, String description, String assetCategoryIds, String assetTagNames, int status, boolean andSearch, int start, int end)
           
static Hits search(long companyId, long[] groupIds, String className, String keywords, int start, int end)
          Deprecated. As of 6.2.0, replaced by search(long, long[], long, String, String, int, int, int)
static void setAssetCategoryAssetEntries(long categoryId, long[] entryIds)
           
static void setAssetTagAssetEntries(long tagId, long[] entryIds)
           
static AssetEntry updateAssetEntry(AssetEntry assetEntry)
          Updates the asset entry in the database or adds it if it does not yet exist.
static AssetEntry updateEntry(long userId, long groupId, Date createDate, Date modifiedDate, String className, long classPK, String classUuid, long classTypeId, long[] categoryIds, String[] tagNames, boolean visible, Date startDate, Date endDate, Date expirationDate, String mimeType, String title, String description, String summary, String url, String layoutUuid, int height, int width, Double priority)
           
static AssetEntry updateEntry(long userId, long groupId, Date createDate, Date modifiedDate, String className, long classPK, String classUuid, long classTypeId, long[] categoryIds, String[] tagNames, boolean visible, Date startDate, Date endDate, Date expirationDate, String mimeType, String title, String description, String summary, String url, String layoutUuid, int height, int width, Integer priority, boolean sync)
          Deprecated. As of 7.0.0, replaced by updateEntry(long, long, Date, Date, String, long, String, long, long[], String[], boolean, Date, Date, Date, String, String, String, String, String, String, int, int, Double)
static AssetEntry updateEntry(long userId, long groupId, String className, long classPK, long[] categoryIds, String[] tagNames)
           
static AssetEntry updateEntry(long userId, long groupId, String className, long classPK, String classUuid, long classTypeId, long[] categoryIds, String[] tagNames, boolean visible, Date startDate, Date endDate, Date publishDate, Date expirationDate, String mimeType, String title, String description, String summary, String url, String layoutUuid, int height, int width, Integer priority, boolean sync)
          Deprecated. As of 6.2.0, replaced by updateEntry(long, long, String, long, String, long, long[], String[], boolean, Date, Date, Date, String, String, String, String, String, String, int, int, Integer, boolean)
static AssetEntry updateEntry(long userId, long groupId, String className, long classPK, String classUuid, long classTypeId, long[] categoryIds, String[] tagNames, boolean visible, Date startDate, Date endDate, Date expirationDate, String mimeType, String title, String description, String summary, String url, String layoutUuid, int height, int width, Integer priority, boolean sync)
          Deprecated. As of 6.2.0, replaced by updateEntry(long, long, Date, Date, String, long, String, long, long[], String[], boolean, Date, Date, Date, String, String, String, String, String, String, int, int, Integer, boolean)
static AssetEntry updateEntry(String className, long classPK, Date publishDate, boolean visible)
           
static AssetEntry updateEntry(String className, long classPK, Date publishDate, Date expirationDate, boolean visible)
           
static AssetEntry updateVisible(AssetEntry entry, boolean visible)
           
static AssetEntry updateVisible(String className, long classPK, boolean visible)
           
static void validate(long groupId, String className, long[] categoryIds, String[] tagNames)
          Deprecated. As of 7.0.0, replaced by validate(long, String, long, long[], String[])
static void validate(long groupId, String className, long classTypePK, long[] categoryIds, String[] tagNames)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetEntryLocalServiceUtil

public AssetEntryLocalServiceUtil()
Method Detail

addAssetCategoryAssetEntries

public static void addAssetCategoryAssetEntries(long categoryId,
                                                List<AssetEntry> AssetEntries)

addAssetCategoryAssetEntries

public static void addAssetCategoryAssetEntries(long categoryId,
                                                long[] entryIds)

addAssetCategoryAssetEntry

public static void addAssetCategoryAssetEntry(long categoryId,
                                              AssetEntry assetEntry)

addAssetCategoryAssetEntry

public static void addAssetCategoryAssetEntry(long categoryId,
                                              long entryId)

addAssetEntry

public static AssetEntry addAssetEntry(AssetEntry assetEntry)
Adds the asset entry to the database. Also notifies the appropriate model listeners.

Parameters:
assetEntry - the asset entry
Returns:
the asset entry that was added

addAssetTagAssetEntries

public static void addAssetTagAssetEntries(long tagId,
                                           List<AssetEntry> AssetEntries)

addAssetTagAssetEntries

public static void addAssetTagAssetEntries(long tagId,
                                           long[] entryIds)

addAssetTagAssetEntry

public static void addAssetTagAssetEntry(long tagId,
                                         AssetEntry assetEntry)

addAssetTagAssetEntry

public static void addAssetTagAssetEntry(long tagId,
                                         long entryId)

clearAssetCategoryAssetEntries

public static void clearAssetCategoryAssetEntries(long categoryId)

clearAssetTagAssetEntries

public static void clearAssetTagAssetEntries(long tagId)

createAssetEntry

public static AssetEntry createAssetEntry(long entryId)
Creates a new asset entry with the primary key. Does not add the asset entry to the database.

Parameters:
entryId - the primary key for the new asset entry
Returns:
the new asset entry

deleteAssetCategoryAssetEntries

public static void deleteAssetCategoryAssetEntries(long categoryId,
                                                   List<AssetEntry> AssetEntries)

deleteAssetCategoryAssetEntries

public static void deleteAssetCategoryAssetEntries(long categoryId,
                                                   long[] entryIds)

deleteAssetCategoryAssetEntry

public static void deleteAssetCategoryAssetEntry(long categoryId,
                                                 AssetEntry assetEntry)

deleteAssetCategoryAssetEntry

public static void deleteAssetCategoryAssetEntry(long categoryId,
                                                 long entryId)

deleteAssetEntry

public static AssetEntry deleteAssetEntry(AssetEntry assetEntry)
Deletes the asset entry from the database. Also notifies the appropriate model listeners.

Parameters:
assetEntry - the asset entry
Returns:
the asset entry that was removed

deleteAssetEntry

public static AssetEntry deleteAssetEntry(long entryId)
                                   throws PortalException
Deletes the asset entry with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
entryId - the primary key of the asset entry
Returns:
the asset entry that was removed
Throws:
PortalException - if a asset entry with the primary key could not be found

deleteAssetTagAssetEntries

public static void deleteAssetTagAssetEntries(long tagId,
                                              List<AssetEntry> AssetEntries)

deleteAssetTagAssetEntries

public static void deleteAssetTagAssetEntries(long tagId,
                                              long[] entryIds)

deleteAssetTagAssetEntry

public static void deleteAssetTagAssetEntry(long tagId,
                                            AssetEntry assetEntry)

deleteAssetTagAssetEntry

public static void deleteAssetTagAssetEntry(long tagId,
                                            long entryId)

deleteEntry

public static void deleteEntry(String className,
                               long classPK)
                        throws PortalException
Throws:
PortalException

deleteEntry

public static void deleteEntry(AssetEntry entry)
                        throws PortalException
Throws:
PortalException

deleteEntry

public static void deleteEntry(long entryId)
                        throws PortalException
Throws:
PortalException

deleteGroupEntries

public static void deleteGroupEntries(long groupId)
                               throws PortalException
Throws:
PortalException

deletePersistedModel

public static PersistedModel deletePersistedModel(PersistedModel persistedModel)
                                           throws PortalException
Throws:
PortalException

dynamicQuery

public static DynamicQuery dynamicQuery()

dynamicQuery

public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.

Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows

dynamicQuery

public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                       int start,
                                       int end)
Performs a dynamic query on the database and returns a range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
Returns:
the range of matching rows

dynamicQuery

public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                       int start,
                                       int end,
                                       OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching rows

dynamicQueryCount

public static long dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.

Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows matching the dynamic query

dynamicQueryCount

public static long dynamicQueryCount(DynamicQuery dynamicQuery,
                                     Projection projection)
Returns the number of rows matching the dynamic query.

Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchAssetEntry

public static AssetEntry fetchAssetEntry(long entryId)

fetchEntry

public static AssetEntry fetchEntry(String className,
                                    long classPK)

fetchEntry

public static AssetEntry fetchEntry(long entryId)

fetchEntry

public static AssetEntry fetchEntry(long groupId,
                                    String classUuid)

getActionableDynamicQuery

public static ActionableDynamicQuery getActionableDynamicQuery()

getAncestorEntries

public static List<AssetEntry> getAncestorEntries(long entryId)
                                           throws PortalException
Throws:
PortalException

getAssetCategoryAssetEntries

public static List<AssetEntry> getAssetCategoryAssetEntries(long categoryId)

getAssetCategoryAssetEntries

public static List<AssetEntry> getAssetCategoryAssetEntries(long categoryId,
                                                            int start,
                                                            int end)

getAssetCategoryAssetEntries

public static List<AssetEntry> getAssetCategoryAssetEntries(long categoryId,
                                                            int start,
                                                            int end,
                                                            OrderByComparator<AssetEntry> orderByComparator)

getAssetCategoryAssetEntriesCount

public static int getAssetCategoryAssetEntriesCount(long categoryId)

getAssetCategoryPrimaryKeys

public static long[] getAssetCategoryPrimaryKeys(long entryId)
Returns the categoryIds of the asset categories associated with the asset entry.

Parameters:
entryId - the entryId of the asset entry
Returns:
long[] the categoryIds of asset categories associated with the asset entry

getAssetEntries

public static List<AssetEntry> getAssetEntries(int start,
                                               int end)
Returns a range of all the asset entries.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of asset entries
end - the upper bound of the range of asset entries (not inclusive)
Returns:
the range of asset entries

getAssetEntriesCount

public static int getAssetEntriesCount()
Returns the number of asset entries.

Returns:
the number of asset entries

getAssetEntry

public static AssetEntry getAssetEntry(long entryId)
                                throws PortalException
Returns the asset entry with the primary key.

Parameters:
entryId - the primary key of the asset entry
Returns:
the asset entry
Throws:
PortalException - if a asset entry with the primary key could not be found

getAssetTagAssetEntries

public static List<AssetEntry> getAssetTagAssetEntries(long tagId)

getAssetTagAssetEntries

public static List<AssetEntry> getAssetTagAssetEntries(long tagId,
                                                       int start,
                                                       int end)

getAssetTagAssetEntries

public static List<AssetEntry> getAssetTagAssetEntries(long tagId,
                                                       int start,
                                                       int end,
                                                       OrderByComparator<AssetEntry> orderByComparator)

getAssetTagAssetEntriesCount

public static int getAssetTagAssetEntriesCount(long tagId)

getAssetTagPrimaryKeys

public static long[] getAssetTagPrimaryKeys(long entryId)
Returns the tagIds of the asset tags associated with the asset entry.

Parameters:
entryId - the entryId of the asset entry
Returns:
long[] the tagIds of asset tags associated with the asset entry

getChildEntries

public static List<AssetEntry> getChildEntries(long entryId)
                                        throws PortalException
Throws:
PortalException

getCompanyEntries

public static List<AssetEntry> getCompanyEntries(long companyId,
                                                 int start,
                                                 int end)

getCompanyEntriesCount

public static int getCompanyEntriesCount(long companyId)

getEntries

public static List<AssetEntry> getEntries(AssetEntryQuery entryQuery)

getEntries

public static List<AssetEntry> getEntries(long[] groupIds,
                                          long[] classNameIds,
                                          String keywords,
                                          String userName,
                                          String title,
                                          String description,
                                          Boolean listable,
                                          boolean advancedSearch,
                                          boolean andOperator,
                                          int start,
                                          int end,
                                          String orderByCol1,
                                          String orderByCol2,
                                          String orderByType1,
                                          String orderByType2)

getEntriesCount

public static int getEntriesCount(AssetEntryQuery entryQuery)

getEntriesCount

public static int getEntriesCount(long[] groupIds,
                                  long[] classNameIds,
                                  String keywords,
                                  String userName,
                                  String title,
                                  String description,
                                  Boolean listable,
                                  boolean advancedSearch,
                                  boolean andOperator)

getEntry

public static AssetEntry getEntry(String className,
                                  long classPK)
                           throws PortalException
Throws:
PortalException

getEntry

public static AssetEntry getEntry(long entryId)
                           throws PortalException
Throws:
PortalException

getEntry

public static AssetEntry getEntry(long groupId,
                                  String classUuid)
                           throws PortalException
Throws:
PortalException

getGroupEntries

public static List<AssetEntry> getGroupEntries(long groupId)

getIndexableActionableDynamicQuery

public static IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()

getNextEntry

public static AssetEntry getNextEntry(long entryId)
                               throws PortalException
Throws:
PortalException

getOSGiServiceIdentifier

public static String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Returns:
the OSGi service identifier

getParentEntry

public static AssetEntry getParentEntry(long entryId)
                                 throws PortalException
Throws:
PortalException

getPersistedModel

public static PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                        throws PortalException
Throws:
PortalException

getPreviousEntry

public static AssetEntry getPreviousEntry(long entryId)
                                   throws PortalException
Throws:
PortalException

getTopViewedEntries

public static List<AssetEntry> getTopViewedEntries(String[] className,
                                                   boolean asc,
                                                   int start,
                                                   int end)

getTopViewedEntries

public static List<AssetEntry> getTopViewedEntries(String className,
                                                   boolean asc,
                                                   int start,
                                                   int end)

hasAssetCategoryAssetEntries

public static boolean hasAssetCategoryAssetEntries(long categoryId)

hasAssetCategoryAssetEntry

public static boolean hasAssetCategoryAssetEntry(long categoryId,
                                                 long entryId)

hasAssetTagAssetEntries

public static boolean hasAssetTagAssetEntries(long tagId)

hasAssetTagAssetEntry

public static boolean hasAssetTagAssetEntry(long tagId,
                                            long entryId)

incrementViewCounter

public static AssetEntry incrementViewCounter(long userId,
                                              String className,
                                              long classPK)
                                       throws PortalException
Throws:
PortalException

incrementViewCounter

public static void incrementViewCounter(long userId,
                                        String className,
                                        long classPK,
                                        int increment)

reindex

public static void reindex(List<AssetEntry> entries)
                    throws PortalException
Throws:
PortalException

search

@Deprecated
public static Hits search(long companyId,
                                     long[] groupIds,
                                     String className,
                                     String keywords,
                                     int start,
                                     int end)
Deprecated. As of 6.2.0, replaced by search(long, long[], long, String, String, int, int, int)


search

public static Hits search(long companyId,
                          long[] groupIds,
                          long userId,
                          String className,
                          long classTypeId,
                          String keywords,
                          boolean showNonindexable,
                          int status,
                          int start,
                          int end)

search

public static Hits search(long companyId,
                          long[] groupIds,
                          long userId,
                          String className,
                          long classTypeId,
                          String keywords,
                          boolean showNonindexable,
                          int[] statuses,
                          int start,
                          int end)

search

public static Hits search(long companyId,
                          long[] groupIds,
                          long userId,
                          String className,
                          long classTypeId,
                          String keywords,
                          int status,
                          int start,
                          int end)

search

public static Hits search(long companyId,
                          long[] groupIds,
                          long userId,
                          String className,
                          long classTypeId,
                          String userName,
                          String title,
                          String description,
                          String assetCategoryIds,
                          String assetTagNames,
                          boolean showNonindexable,
                          int status,
                          boolean andSearch,
                          int start,
                          int end)

search

public static Hits search(long companyId,
                          long[] groupIds,
                          long userId,
                          String className,
                          long classTypeId,
                          String userName,
                          String title,
                          String description,
                          String assetCategoryIds,
                          String assetTagNames,
                          boolean showNonindexable,
                          int[] statuses,
                          boolean andSearch,
                          int start,
                          int end)

search

public static Hits search(long companyId,
                          long[] groupIds,
                          long userId,
                          String className,
                          long classTypeId,
                          String userName,
                          String title,
                          String description,
                          String assetCategoryIds,
                          String assetTagNames,
                          int status,
                          boolean andSearch,
                          int start,
                          int end)

search

@Deprecated
public static Hits search(long companyId,
                                     long[] groupIds,
                                     long userId,
                                     String className,
                                     String keywords,
                                     int start,
                                     int end)
Deprecated. As of 6.2.0, replaced by search(long, long[], long, String, String, int, int, int)


search

public static Hits search(long companyId,
                          long[] groupIds,
                          long userId,
                          String className,
                          String keywords,
                          int status,
                          int start,
                          int end)

search

@Deprecated
public static Hits search(long companyId,
                                     long[] groupIds,
                                     long userId,
                                     String className,
                                     String userName,
                                     String title,
                                     String description,
                                     String assetCategoryIds,
                                     String assetTagNames,
                                     boolean andSearch,
                                     int start,
                                     int end)
Deprecated. As of 6.2.0, replaced by search(long, long[], long, String, String, String, String, String, String, int, boolean, int, int)


search

public static Hits search(long companyId,
                          long[] groupIds,
                          long userId,
                          String className,
                          String userName,
                          String title,
                          String description,
                          String assetCategoryIds,
                          String assetTagNames,
                          int status,
                          boolean andSearch,
                          int start,
                          int end)

setAssetCategoryAssetEntries

public static void setAssetCategoryAssetEntries(long categoryId,
                                                long[] entryIds)

setAssetTagAssetEntries

public static void setAssetTagAssetEntries(long tagId,
                                           long[] entryIds)

updateAssetEntry

public static AssetEntry updateAssetEntry(AssetEntry assetEntry)
Updates the asset entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Parameters:
assetEntry - the asset entry
Returns:
the asset entry that was updated

updateEntry

public static AssetEntry updateEntry(String className,
                                     long classPK,
                                     Date publishDate,
                                     Date expirationDate,
                                     boolean visible)
                              throws PortalException
Throws:
PortalException

updateEntry

public static AssetEntry updateEntry(String className,
                                     long classPK,
                                     Date publishDate,
                                     boolean visible)
                              throws PortalException
Throws:
PortalException

updateEntry

public static AssetEntry updateEntry(long userId,
                                     long groupId,
                                     String className,
                                     long classPK,
                                     long[] categoryIds,
                                     String[] tagNames)
                              throws PortalException
Throws:
PortalException

updateEntry

@Deprecated
public static AssetEntry updateEntry(long userId,
                                                long groupId,
                                                String className,
                                                long classPK,
                                                String classUuid,
                                                long classTypeId,
                                                long[] categoryIds,
                                                String[] tagNames,
                                                boolean visible,
                                                Date startDate,
                                                Date endDate,
                                                Date expirationDate,
                                                String mimeType,
                                                String title,
                                                String description,
                                                String summary,
                                                String url,
                                                String layoutUuid,
                                                int height,
                                                int width,
                                                Integer priority,
                                                boolean sync)
                              throws PortalException
Deprecated. As of 6.2.0, replaced by updateEntry(long, long, Date, Date, String, long, String, long, long[], String[], boolean, Date, Date, Date, String, String, String, String, String, String, int, int, Integer, boolean)

Throws:
PortalException

updateEntry

@Deprecated
public static AssetEntry updateEntry(long userId,
                                                long groupId,
                                                String className,
                                                long classPK,
                                                String classUuid,
                                                long classTypeId,
                                                long[] categoryIds,
                                                String[] tagNames,
                                                boolean visible,
                                                Date startDate,
                                                Date endDate,
                                                Date publishDate,
                                                Date expirationDate,
                                                String mimeType,
                                                String title,
                                                String description,
                                                String summary,
                                                String url,
                                                String layoutUuid,
                                                int height,
                                                int width,
                                                Integer priority,
                                                boolean sync)
                              throws PortalException
Deprecated. As of 6.2.0, replaced by updateEntry(long, long, String, long, String, long, long[], String[], boolean, Date, Date, Date, String, String, String, String, String, String, int, int, Integer, boolean)

Throws:
PortalException

updateEntry

public static AssetEntry updateEntry(long userId,
                                     long groupId,
                                     Date createDate,
                                     Date modifiedDate,
                                     String className,
                                     long classPK,
                                     String classUuid,
                                     long classTypeId,
                                     long[] categoryIds,
                                     String[] tagNames,
                                     boolean visible,
                                     Date startDate,
                                     Date endDate,
                                     Date expirationDate,
                                     String mimeType,
                                     String title,
                                     String description,
                                     String summary,
                                     String url,
                                     String layoutUuid,
                                     int height,
                                     int width,
                                     Double priority)
                              throws PortalException
Throws:
PortalException

updateEntry

@Deprecated
public static AssetEntry updateEntry(long userId,
                                                long groupId,
                                                Date createDate,
                                                Date modifiedDate,
                                                String className,
                                                long classPK,
                                                String classUuid,
                                                long classTypeId,
                                                long[] categoryIds,
                                                String[] tagNames,
                                                boolean visible,
                                                Date startDate,
                                                Date endDate,
                                                Date expirationDate,
                                                String mimeType,
                                                String title,
                                                String description,
                                                String summary,
                                                String url,
                                                String layoutUuid,
                                                int height,
                                                int width,
                                                Integer priority,
                                                boolean sync)
                              throws PortalException
Deprecated. As of 7.0.0, replaced by updateEntry(long, long, Date, Date, String, long, String, long, long[], String[], boolean, Date, Date, Date, String, String, String, String, String, String, int, int, Double)

Throws:
PortalException

updateVisible

public static AssetEntry updateVisible(String className,
                                       long classPK,
                                       boolean visible)
                                throws PortalException
Throws:
PortalException

updateVisible

public static AssetEntry updateVisible(AssetEntry entry,
                                       boolean visible)
                                throws PortalException
Throws:
PortalException

validate

@Deprecated
public static void validate(long groupId,
                                       String className,
                                       long[] categoryIds,
                                       String[] tagNames)
                     throws PortalException
Deprecated. As of 7.0.0, replaced by validate(long, String, long, long[], String[])

Throws:
PortalException

validate

public static void validate(long groupId,
                            String className,
                            long classTypePK,
                            long[] categoryIds,
                            String[] tagNames)
                     throws PortalException
Throws:
PortalException

getService

public static AssetEntryLocalService getService()

Liferay 7.0-ce-b4