@ProviderType
public class BookmarksFolderLocalServiceUtil
extends java.lang.Object
com.liferay.bookmarks.service.impl.BookmarksFolderLocalServiceImpl
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.BookmarksFolderLocalService
,
com.liferay.bookmarks.service.base.BookmarksFolderLocalServiceBaseImpl
,
com.liferay.bookmarks.service.impl.BookmarksFolderLocalServiceImpl
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,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static BookmarksFolder |
createBookmarksFolder(long folderId)
Creates a new bookmarks folder with the primary key.
|
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 com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
static com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
static <T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
static <T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.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(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
static long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
static long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.kernel.dao.orm.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,
com.liferay.portal.kernel.util.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 com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.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,
com.liferay.portal.kernel.util.OrderByComparator obc) |
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 com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
static java.util.List<BookmarksFolder> |
getNoAssetFolders() |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static com.liferay.portal.kernel.model.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,
boolean mergeWithParentFolder,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of Wilberforce (7.0.x), replaced by
updateFolder(long, long, long, String, String,
ServiceContext) and mergeFolders(long, long) |
static BookmarksFolder |
updateFolder(long userId,
long folderId,
long parentFolderId,
java.lang.String name,
java.lang.String description,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static BookmarksFolder |
updateStatus(long userId,
BookmarksFolder folder,
int status) |
public static BookmarksFolder addBookmarksFolder(BookmarksFolder bookmarksFolder)
bookmarksFolder
- the bookmarks folderpublic static BookmarksFolder addFolder(long userId, long parentFolderId, java.lang.String name, java.lang.String description, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static BookmarksFolder createBookmarksFolder(long folderId)
folderId
- the primary key for the new bookmarks folderpublic static BookmarksFolder deleteBookmarksFolder(BookmarksFolder bookmarksFolder)
bookmarksFolder
- the bookmarks folderpublic static BookmarksFolder deleteBookmarksFolder(long folderId) throws com.liferay.portal.kernel.exception.PortalException
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 com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static BookmarksFolder deleteFolder(BookmarksFolder folder, boolean includeTrashedEntries) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static BookmarksFolder deleteFolder(long folderId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static BookmarksFolder deleteFolder(long folderId, boolean includeTrashedEntries) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void deleteFolders(long groupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
PortalException
public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
public static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.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 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 com.liferay.bookmarks.model.impl.BookmarksFolderModelImpl
. 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.
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(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.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 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 com.liferay.bookmarks.model.impl.BookmarksFolderModelImpl
. 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.
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(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery
- the dynamic querypublic static long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
public static BookmarksFolder getBookmarksFolder(long folderId) throws com.liferay.portal.kernel.exception.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 com.liferay.portal.kernel.exception.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 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 com.liferay.bookmarks.model.impl.BookmarksFolderModelImpl
. 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.
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, com.liferay.portal.kernel.util.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 com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
public static BookmarksFolder getFolder(long folderId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public 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, com.liferay.portal.kernel.util.OrderByComparator obc)
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 com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
public static java.util.List<BookmarksFolder> getNoAssetFolders()
public static java.lang.String getOSGiServiceIdentifier()
public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void getSubfolderIds(java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
public static void mergeFolders(long folderId, long parentFolderId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static BookmarksFolder moveFolder(long folderId, long parentFolderId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static BookmarksFolder moveFolderFromTrash(long userId, long folderId, long parentFolderId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static BookmarksFolder moveFolderToTrash(long userId, long folderId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void rebuildTree(long companyId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void rebuildTree(long companyId, long parentFolderId, java.lang.String parentTreePath, boolean reindex) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static BookmarksFolder restoreFolderFromTrash(long userId, long folderId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void subscribeFolder(long userId, long groupId, long folderId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void unsubscribeFolder(long userId, long groupId, long folderId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void updateAsset(long userId, BookmarksFolder folder, long[] assetCategoryIds, java.lang.String[] assetTagNames, long[] assetLinkEntryIds, java.lang.Double priority) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static BookmarksFolder updateBookmarksFolder(BookmarksFolder bookmarksFolder)
bookmarksFolder
- the bookmarks folder@Deprecated public static BookmarksFolder updateFolder(long userId, long folderId, long parentFolderId, java.lang.String name, java.lang.String description, boolean mergeWithParentFolder, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateFolder(long, long, long, String, String,
ServiceContext)
and mergeFolders(long, long)
com.liferay.portal.kernel.exception.PortalException
public static BookmarksFolder updateFolder(long userId, long folderId, long parentFolderId, java.lang.String name, java.lang.String description, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static BookmarksFolder updateStatus(long userId, BookmarksFolder folder, int status) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static BookmarksFolderLocalService getService()