public class BookmarksFolderLocalServiceUtil
extends java.lang.Object
com.liferay.bookmarks.service.impl.BookmarksFolderLocalServiceImpl and
is an 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.BookmarksFolderLocalService| Constructor and Description |
|---|
BookmarksFolderLocalServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static BookmarksFolder |
addBookmarksFolder(BookmarksFolder bookmarksFolder)
Adds the bookmarks folder to the database.
|
static BookmarksFolder |
addFolder(long userId,
long parentFolderId,
java.lang.String name,
java.lang.String description,
ServiceContext serviceContext) |
static BookmarksFolder |
createBookmarksFolder(long folderId)
Creates a new bookmarks folder with the primary key.
|
static PersistedModel |
createPersistedModel(java.io.Serializable primaryKeyObj) |
static BookmarksFolder |
deleteBookmarksFolder(BookmarksFolder bookmarksFolder)
Deletes the bookmarks folder from the database.
|
static BookmarksFolder |
deleteBookmarksFolder(long folderId)
Deletes the bookmarks folder with the primary key from the database.
|
static BookmarksFolder |
deleteFolder(BookmarksFolder folder) |
static BookmarksFolder |
deleteFolder(BookmarksFolder folder,
boolean includeTrashedEntries) |
static BookmarksFolder |
deleteFolder(long folderId) |
static BookmarksFolder |
deleteFolder(long folderId,
boolean includeTrashedEntries) |
static void |
deleteFolders(long groupId) |
static PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
static <T> T |
dslQuery(DSLQuery dslQuery) |
static DynamicQuery |
dynamicQuery() |
static <T> java.util.List<T> |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
static <T> java.util.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> java.util.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 BookmarksFolder |
fetchBookmarksFolder(long folderId) |
static BookmarksFolder |
fetchBookmarksFolderByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the bookmarks folder matching the UUID and group.
|
static ActionableDynamicQuery |
getActionableDynamicQuery() |
static BookmarksFolder |
getBookmarksFolder(long folderId)
Returns the bookmarks folder with the primary key.
|
static BookmarksFolder |
getBookmarksFolderByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the bookmarks folder matching the UUID and group.
|
static java.util.List<BookmarksFolder> |
getBookmarksFolders(int start,
int end)
Returns a range of all the bookmarks folders.
|
static java.util.List<BookmarksFolder> |
getBookmarksFoldersByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns all the bookmarks folders matching the UUID and company.
|
static java.util.List<BookmarksFolder> |
getBookmarksFoldersByUuidAndCompanyId(java.lang.String uuid,
long companyId,
int start,
int end,
OrderByComparator<BookmarksFolder> orderByComparator)
Returns a range of bookmarks folders matching the UUID and company.
|
static int |
getBookmarksFoldersCount()
Returns the number of bookmarks folders.
|
static java.util.List<BookmarksFolder> |
getCompanyFolders(long companyId,
int start,
int end) |
static int |
getCompanyFoldersCount(long companyId) |
static ExportActionableDynamicQuery |
getExportActionableDynamicQuery(PortletDataContext portletDataContext) |
static BookmarksFolder |
getFolder(long folderId) |
static java.util.List<BookmarksFolder> |
getFolders(long groupId) |
static java.util.List<BookmarksFolder> |
getFolders(long groupId,
long parentFolderId) |
static java.util.List<BookmarksFolder> |
getFolders(long groupId,
long parentFolderId,
int start,
int end) |
static java.util.List<BookmarksFolder> |
getFolders(long groupId,
long parentFolderId,
int status,
int start,
int end) |
static java.util.List<java.lang.Object> |
getFoldersAndEntries(long groupId,
long folderId) |
static java.util.List<java.lang.Object> |
getFoldersAndEntries(long groupId,
long folderId,
int status) |
static java.util.List<java.lang.Object> |
getFoldersAndEntries(long groupId,
long folderId,
int status,
int start,
int end) |
static java.util.List<java.lang.Object> |
getFoldersAndEntries(long groupId,
long folderId,
int status,
int start,
int end,
OrderByComparator<?> orderByComparator) |
static int |
getFoldersAndEntriesCount(long groupId,
long folderId,
int status) |
static int |
getFoldersCount(long groupId,
long parentFolderId) |
static int |
getFoldersCount(long groupId,
long parentFolderId,
int status) |
static IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
static java.util.List<BookmarksFolder> |
getNoAssetFolders() |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
static BookmarksFolderLocalService |
getService() |
static void |
getSubfolderIds(java.util.List<java.lang.Long> folderIds,
long groupId,
long folderId) |
static void |
mergeFolders(long folderId,
long parentFolderId) |
static BookmarksFolder |
moveFolder(long folderId,
long parentFolderId) |
static BookmarksFolder |
moveFolderFromTrash(long userId,
long folderId,
long parentFolderId) |
static BookmarksFolder |
moveFolderToTrash(long userId,
long folderId) |
static void |
rebuildTree(long companyId) |
static void |
rebuildTree(long companyId,
long parentFolderId,
java.lang.String parentTreePath,
boolean reindex) |
static BookmarksFolder |
restoreFolderFromTrash(long userId,
long folderId) |
static void |
subscribeFolder(long userId,
long groupId,
long folderId) |
static void |
unsubscribeFolder(long userId,
long groupId,
long folderId) |
static void |
updateAsset(long userId,
BookmarksFolder folder,
long[] assetCategoryIds,
java.lang.String[] assetTagNames,
long[] assetLinkEntryIds,
java.lang.Double priority) |
static BookmarksFolder |
updateBookmarksFolder(BookmarksFolder bookmarksFolder)
Updates the bookmarks folder in the database or adds it if it does not yet exist.
|
static BookmarksFolder |
updateFolder(long userId,
long folderId,
long parentFolderId,
java.lang.String name,
java.lang.String description,
ServiceContext serviceContext) |
static BookmarksFolder |
updateStatus(long userId,
BookmarksFolder folder,
int status) |
public static BookmarksFolder addBookmarksFolder(BookmarksFolder bookmarksFolder)
Important: Inspect BookmarksFolderLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
bookmarksFolder - the bookmarks folderpublic static BookmarksFolder addFolder(long userId, long parentFolderId, java.lang.String name, java.lang.String description, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic static BookmarksFolder createBookmarksFolder(long folderId)
folderId - the primary key for the new bookmarks folderpublic static PersistedModel createPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException
PortalExceptionpublic static BookmarksFolder deleteBookmarksFolder(BookmarksFolder bookmarksFolder)
Important: Inspect BookmarksFolderLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
bookmarksFolder - the bookmarks folderpublic static BookmarksFolder deleteBookmarksFolder(long folderId) throws PortalException
Important: Inspect BookmarksFolderLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
folderId - the primary key of the bookmarks folderPortalException - if a bookmarks folder with the primary key could not be foundpublic static BookmarksFolder deleteFolder(BookmarksFolder folder) throws PortalException
PortalExceptionpublic static BookmarksFolder deleteFolder(BookmarksFolder folder, boolean includeTrashedEntries) throws PortalException
PortalExceptionpublic static BookmarksFolder deleteFolder(long folderId) throws PortalException
PortalExceptionpublic static BookmarksFolder deleteFolder(long folderId, boolean includeTrashedEntries) throws PortalException
PortalExceptionpublic static void deleteFolders(long groupId)
throws PortalException
PortalExceptionpublic static PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
PortalExceptionpublic static <T> T dslQuery(DSLQuery dslQuery)
public static DynamicQuery dynamicQuery()
public static <T> java.util.List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery - the dynamic querypublic static <T> java.util.List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.bookmarks.model.impl.BookmarksFolderModelImpl.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)public static <T> java.util.List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.bookmarks.model.impl.BookmarksFolderModelImpl.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQuery - the dynamic querypublic static long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQuery - the dynamic queryprojection - the projection to apply to the querypublic static BookmarksFolder fetchBookmarksFolder(long folderId)
public static BookmarksFolder fetchBookmarksFolderByUuidAndGroupId(java.lang.String uuid, long groupId)
uuid - the bookmarks folder's UUIDgroupId - the primary key of the groupnull if a matching bookmarks folder could not be foundpublic static ActionableDynamicQuery getActionableDynamicQuery()
public static BookmarksFolder getBookmarksFolder(long folderId) throws PortalException
folderId - the primary key of the bookmarks folderPortalException - if a bookmarks folder with the primary key could not be foundpublic static BookmarksFolder getBookmarksFolderByUuidAndGroupId(java.lang.String uuid, long groupId) throws PortalException
uuid - the bookmarks folder's UUIDgroupId - the primary key of the groupPortalException - if a matching bookmarks folder could not be foundpublic static java.util.List<BookmarksFolder> getBookmarksFolders(int start, int end)
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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.bookmarks.model.impl.BookmarksFolderModelImpl.
start - the lower bound of the range of bookmarks foldersend - the upper bound of the range of bookmarks folders (not inclusive)public static java.util.List<BookmarksFolder> getBookmarksFoldersByUuidAndCompanyId(java.lang.String uuid, long companyId)
uuid - the UUID of the bookmarks folderscompanyId - the primary key of the companypublic static java.util.List<BookmarksFolder> getBookmarksFoldersByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, OrderByComparator<BookmarksFolder> orderByComparator)
uuid - the UUID of the bookmarks folderscompanyId - the primary key of the companystart - the lower bound of the range of bookmarks foldersend - the upper bound of the range of bookmarks folders (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static int getBookmarksFoldersCount()
public static java.util.List<BookmarksFolder> getCompanyFolders(long companyId, int start, int end)
public static int getCompanyFoldersCount(long companyId)
public static ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
public static BookmarksFolder getFolder(long folderId) throws PortalException
PortalExceptionpublic static java.util.List<BookmarksFolder> getFolders(long groupId)
public static java.util.List<BookmarksFolder> getFolders(long groupId, long parentFolderId)
public static java.util.List<BookmarksFolder> getFolders(long groupId, long parentFolderId, int start, int end)
public static java.util.List<BookmarksFolder> getFolders(long groupId, long parentFolderId, int status, int start, int end)
public static java.util.List<java.lang.Object> getFoldersAndEntries(long groupId,
long folderId)
public static java.util.List<java.lang.Object> getFoldersAndEntries(long groupId,
long folderId,
int status)
public static java.util.List<java.lang.Object> getFoldersAndEntries(long groupId,
long folderId,
int status,
int start,
int end)
public static java.util.List<java.lang.Object> getFoldersAndEntries(long groupId,
long folderId,
int status,
int start,
int end,
OrderByComparator<?> orderByComparator)
public static int getFoldersAndEntriesCount(long groupId,
long folderId,
int status)
public static int getFoldersCount(long groupId,
long parentFolderId)
public static int getFoldersCount(long groupId,
long parentFolderId,
int status)
public static IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static java.util.List<BookmarksFolder> getNoAssetFolders()
public static java.lang.String getOSGiServiceIdentifier()
public static PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException
PortalExceptionpublic static void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
long groupId,
long folderId)
public static void mergeFolders(long folderId,
long parentFolderId)
throws PortalException
PortalExceptionpublic static BookmarksFolder moveFolder(long folderId, long parentFolderId) throws PortalException
PortalExceptionpublic static BookmarksFolder moveFolderFromTrash(long userId, long folderId, long parentFolderId) throws PortalException
PortalExceptionpublic static BookmarksFolder moveFolderToTrash(long userId, long folderId) throws PortalException
PortalExceptionpublic static void rebuildTree(long companyId)
throws PortalException
PortalExceptionpublic static void rebuildTree(long companyId,
long parentFolderId,
java.lang.String parentTreePath,
boolean reindex)
throws PortalException
PortalExceptionpublic static BookmarksFolder restoreFolderFromTrash(long userId, long folderId) throws PortalException
PortalExceptionpublic static void subscribeFolder(long userId,
long groupId,
long folderId)
throws PortalException
PortalExceptionpublic static void unsubscribeFolder(long userId,
long groupId,
long folderId)
throws PortalException
PortalExceptionpublic static void updateAsset(long userId,
BookmarksFolder folder,
long[] assetCategoryIds,
java.lang.String[] assetTagNames,
long[] assetLinkEntryIds,
java.lang.Double priority)
throws PortalException
PortalExceptionpublic static BookmarksFolder updateBookmarksFolder(BookmarksFolder bookmarksFolder)
Important: Inspect BookmarksFolderLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
bookmarksFolder - the bookmarks folderpublic static BookmarksFolder updateFolder(long userId, long folderId, long parentFolderId, java.lang.String name, java.lang.String description, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic static BookmarksFolder updateStatus(long userId, BookmarksFolder folder, int status) throws PortalException
PortalExceptionpublic static BookmarksFolderLocalService getService()