|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.blogs.service.BlogsEntryLocalServiceUtil
public class BlogsEntryLocalServiceUtil
The utility for the blogs entry local service. This utility wraps BlogsEntryLocalServiceImpl
and is the primary access point for service operations in application layer code running on the local server.
Never modify this class directly. Add custom service methods to BlogsEntryLocalServiceImpl
and rerun ServiceBuilder to regenerate this class.
This is a local service. 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.
BlogsEntryLocalService
,
BlogsEntryLocalServiceBaseImpl
,
BlogsEntryLocalServiceImpl
Constructor Summary | |
---|---|
BlogsEntryLocalServiceUtil()
|
Method Summary | |
---|---|
static BlogsEntry |
addBlogsEntry(BlogsEntry blogsEntry)
Adds the blogs entry to the database. |
static BlogsEntry |
addEntry(long userId,
String title,
String content,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
boolean allowPingbacks,
boolean allowTrackbacks,
String[] trackbacks,
ServiceContext serviceContext)
|
static void |
addEntryResources(BlogsEntry entry,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
static void |
addEntryResources(BlogsEntry entry,
String[] communityPermissions,
String[] guestPermissions)
|
static void |
addEntryResources(long entryId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
static void |
addEntryResources(long entryId,
String[] communityPermissions,
String[] guestPermissions)
|
static BlogsEntry |
createBlogsEntry(long entryId)
Creates a new blogs entry with the primary key. |
static void |
deleteBlogsEntry(BlogsEntry blogsEntry)
Deletes the blogs entry from the database. |
static void |
deleteBlogsEntry(long entryId)
Deletes the blogs entry with the primary key from the database. |
static void |
deleteEntries(long groupId)
|
static void |
deleteEntry(BlogsEntry entry)
|
static void |
deleteEntry(long entryId)
|
static List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows. |
static List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows. |
static List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows. |
static long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Counts the number of rows that match the dynamic query. |
static List<BlogsEntry> |
getBlogsEntries(int start,
int end)
Gets a range of all the blogs entries. |
static int |
getBlogsEntriesCount()
Gets the number of blogs entries. |
static BlogsEntry |
getBlogsEntry(long entryId)
Gets the blogs entry with the primary key. |
static BlogsEntry |
getBlogsEntryByUuidAndGroupId(String uuid,
long groupId)
Gets the blogs entry with the UUID and group id. |
static List<BlogsEntry> |
getCompanyEntries(long companyId,
int status,
int start,
int end)
|
static List<BlogsEntry> |
getCompanyEntries(long companyId,
int status,
int start,
int end,
OrderByComparator obc)
|
static int |
getCompanyEntriesCount(long companyId,
int status)
|
static BlogsEntry[] |
getEntriesPrevAndNext(long entryId)
|
static BlogsEntry |
getEntry(long entryId)
|
static BlogsEntry |
getEntry(long groupId,
String urlTitle)
|
static List<BlogsEntry> |
getGroupEntries(long groupId,
int status,
int start,
int end)
|
static List<BlogsEntry> |
getGroupEntries(long groupId,
int status,
int start,
int end,
OrderByComparator obc)
|
static int |
getGroupEntriesCount(long groupId,
int status)
|
static List<BlogsEntry> |
getGroupsEntries(long companyId,
long groupId,
int status,
int start,
int end)
|
static List<BlogsEntry> |
getGroupUserEntries(long groupId,
long userId,
int status,
int start,
int end)
|
static List<BlogsEntry> |
getGroupUserEntries(long groupId,
long userId,
int status,
int start,
int end,
OrderByComparator obc)
|
static int |
getGroupUserEntriesCount(long groupId,
long userId,
int status)
|
static List<BlogsEntry> |
getNoAssetEntries()
|
static List<BlogsEntry> |
getOrganizationEntries(long organizationId,
int status,
int start,
int end)
|
static int |
getOrganizationEntriesCount(long organizationId,
int status)
|
static BlogsEntryLocalService |
getService()
|
void |
setService(BlogsEntryLocalService service)
|
static void |
updateAsset(long userId,
BlogsEntry entry,
long[] assetCategoryIds,
String[] assetTagNames)
|
static BlogsEntry |
updateBlogsEntry(BlogsEntry blogsEntry)
Updates the blogs entry in the database. |
static BlogsEntry |
updateBlogsEntry(BlogsEntry blogsEntry,
boolean merge)
Updates the blogs entry in the database. |
static BlogsEntry |
updateEntry(long userId,
long entryId,
String title,
String content,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
boolean allowPingbacks,
boolean allowTrackbacks,
String[] trackbacks,
ServiceContext serviceContext)
|
static void |
updateEntryResources(BlogsEntry entry,
String[] communityPermissions,
String[] guestPermissions)
|
static BlogsEntry |
updateStatus(long userId,
long entryId,
int status,
ServiceContext serviceContext)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlogsEntryLocalServiceUtil()
Method Detail |
---|
public static BlogsEntry addBlogsEntry(BlogsEntry blogsEntry) throws SystemException
blogsEntry
- the blogs entry to add
SystemException
- if a system exception occurredpublic static BlogsEntry createBlogsEntry(long entryId)
entryId
- the primary key for the new blogs entry
public static void deleteBlogsEntry(long entryId) throws PortalException, SystemException
entryId
- the primary key of the blogs entry to delete
PortalException
- if a blogs entry with the primary key could not be found
SystemException
- if a system exception occurredpublic static void deleteBlogsEntry(BlogsEntry blogsEntry) throws SystemException
blogsEntry
- the blogs entry to delete
SystemException
- if a system exception occurredpublic static List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurredpublic static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
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.
dynamicQuery
- the dynamic query to search withstart
- the lower bound of the range of model instances to returnend
- the upper bound of the range of model instances to return (not inclusive)
SystemException
- if a system exception occurredpublic static List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
dynamicQuery
- the dynamic query to search withstart
- the lower bound of the range of model instances to returnend
- the upper bound of the range of model instances to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static long dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery
- the dynamic query to search with
SystemException
- if a system exception occurredpublic static BlogsEntry getBlogsEntry(long entryId) throws PortalException, SystemException
entryId
- the primary key of the blogs entry to get
PortalException
- if a blogs entry with the primary key could not be found
SystemException
- if a system exception occurredpublic static BlogsEntry getBlogsEntryByUuidAndGroupId(String uuid, long groupId) throws PortalException, SystemException
uuid
- the UUID of blogs entry to getgroupId
- the group id of the blogs entry to get
PortalException
- if a blogs entry with the UUID and group id could not be found
SystemException
- if a system exception occurredpublic static List<BlogsEntry> getBlogsEntries(int start, int end) throws SystemException
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.
start
- the lower bound of the range of blogs entries to returnend
- the upper bound of the range of blogs entries to return (not inclusive)
SystemException
- if a system exception occurredpublic static int getBlogsEntriesCount() throws SystemException
SystemException
- if a system exception occurredpublic static BlogsEntry updateBlogsEntry(BlogsEntry blogsEntry) throws SystemException
blogsEntry
- the blogs entry to update
SystemException
- if a system exception occurredpublic static BlogsEntry updateBlogsEntry(BlogsEntry blogsEntry, boolean merge) throws SystemException
blogsEntry
- the blogs entry to updatemerge
- whether to merge the blogs entry with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)
for an explanation.
SystemException
- if a system exception occurredpublic static BlogsEntry addEntry(long userId, String title, String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
public static void addEntryResources(BlogsEntry entry, boolean addCommunityPermissions, boolean addGuestPermissions) throws PortalException, SystemException
PortalException
SystemException
public static void addEntryResources(BlogsEntry entry, String[] communityPermissions, String[] guestPermissions) throws PortalException, SystemException
PortalException
SystemException
public static void addEntryResources(long entryId, boolean addCommunityPermissions, boolean addGuestPermissions) throws PortalException, SystemException
PortalException
SystemException
public static void addEntryResources(long entryId, String[] communityPermissions, String[] guestPermissions) throws PortalException, SystemException
PortalException
SystemException
public static void deleteEntries(long groupId) throws PortalException, SystemException
PortalException
SystemException
public static void deleteEntry(BlogsEntry entry) throws PortalException, SystemException
PortalException
SystemException
public static void deleteEntry(long entryId) throws PortalException, SystemException
PortalException
SystemException
public static List<BlogsEntry> getCompanyEntries(long companyId, int status, int start, int end) throws SystemException
SystemException
public static List<BlogsEntry> getCompanyEntries(long companyId, int status, int start, int end, OrderByComparator obc) throws SystemException
SystemException
public static int getCompanyEntriesCount(long companyId, int status) throws SystemException
SystemException
public static BlogsEntry[] getEntriesPrevAndNext(long entryId) throws PortalException, SystemException
PortalException
SystemException
public static BlogsEntry getEntry(long entryId) throws PortalException, SystemException
PortalException
SystemException
public static BlogsEntry getEntry(long groupId, String urlTitle) throws PortalException, SystemException
PortalException
SystemException
public static List<BlogsEntry> getGroupEntries(long groupId, int status, int start, int end) throws SystemException
SystemException
public static List<BlogsEntry> getGroupEntries(long groupId, int status, int start, int end, OrderByComparator obc) throws SystemException
SystemException
public static int getGroupEntriesCount(long groupId, int status) throws SystemException
SystemException
public static List<BlogsEntry> getGroupsEntries(long companyId, long groupId, int status, int start, int end) throws SystemException
SystemException
public static List<BlogsEntry> getGroupUserEntries(long groupId, long userId, int status, int start, int end) throws SystemException
SystemException
public static List<BlogsEntry> getGroupUserEntries(long groupId, long userId, int status, int start, int end, OrderByComparator obc) throws SystemException
SystemException
public static int getGroupUserEntriesCount(long groupId, long userId, int status) throws SystemException
SystemException
public static List<BlogsEntry> getNoAssetEntries() throws SystemException
SystemException
public static List<BlogsEntry> getOrganizationEntries(long organizationId, int status, int start, int end) throws SystemException
SystemException
public static int getOrganizationEntriesCount(long organizationId, int status) throws SystemException
SystemException
public static void updateAsset(long userId, BlogsEntry entry, long[] assetCategoryIds, String[] assetTagNames) throws PortalException, SystemException
PortalException
SystemException
public static BlogsEntry updateEntry(long userId, long entryId, String title, String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
public static void updateEntryResources(BlogsEntry entry, String[] communityPermissions, String[] guestPermissions) throws PortalException, SystemException
PortalException
SystemException
public static BlogsEntry updateStatus(long userId, long entryId, int status, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
public static BlogsEntryLocalService getService()
public void setService(BlogsEntryLocalService service)
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |