|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.BaseLocalServiceImpl com.liferay.portlet.blogs.service.base.BlogsEntryLocalServiceBaseImpl com.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl
public class BlogsEntryLocalServiceImpl
Provides the local service for accessing, adding, checking, deleting, subscription handling of, trash handling of, and updating blog entries.
Field Summary |
---|
Fields inherited from class com.liferay.portal.service.BaseLocalServiceImpl |
---|
layoutPersistence |
Constructor Summary | |
---|---|
BlogsEntryLocalServiceImpl()
|
Method Summary | |
---|---|
BlogsEntry |
addEntry(long userId,
String title,
String description,
String content,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
boolean allowPingbacks,
boolean allowTrackbacks,
String[] trackbacks,
boolean smallImage,
String smallImageURL,
String smallImageFileName,
InputStream smallImageInputStream,
ServiceContext serviceContext)
|
void |
addEntryResources(BlogsEntry entry,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
void |
addEntryResources(BlogsEntry entry,
String[] groupPermissions,
String[] guestPermissions)
|
void |
addEntryResources(long entryId,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
void |
addEntryResources(long entryId,
String[] groupPermissions,
String[] guestPermissions)
|
void |
checkEntries()
|
void |
deleteEntries(long groupId)
|
void |
deleteEntry(BlogsEntry entry)
|
void |
deleteEntry(long entryId)
|
List<BlogsEntry> |
getCompanyEntries(long companyId,
Date displayDate,
int status,
int start,
int end)
Deprecated. As of 6.2.0, replaced by getCompanyEntries(long,
Date, QueryDefinition) |
List<BlogsEntry> |
getCompanyEntries(long companyId,
Date displayDate,
int status,
int start,
int end,
OrderByComparator obc)
Deprecated. As of 6.2.0, replaced by getCompanyEntries(long,
Date, QueryDefinition) |
List<BlogsEntry> |
getCompanyEntries(long companyId,
Date displayDate,
QueryDefinition queryDefinition)
|
int |
getCompanyEntriesCount(long companyId,
Date displayDate,
int status)
Deprecated. As of 6.2.0, replaced by getCompanyEntriesCount(long,
Date, QueryDefinition) |
int |
getCompanyEntriesCount(long companyId,
Date displayDate,
QueryDefinition queryDefinition)
|
BlogsEntry[] |
getEntriesPrevAndNext(long entryId)
|
BlogsEntry |
getEntry(long entryId)
|
BlogsEntry |
getEntry(long groupId,
String urlTitle)
|
List<BlogsEntry> |
getGroupEntries(long groupId,
Date displayDate,
int status,
int start,
int end)
Deprecated. As of 6.2.0, replaced by getGroupEntries(long, Date,
QueryDefinition) |
List<BlogsEntry> |
getGroupEntries(long groupId,
Date displayDate,
int status,
int start,
int end,
OrderByComparator obc)
Deprecated. As of 6.2.0, replaced by getGroupEntries(long, Date,
QueryDefinition) |
List<BlogsEntry> |
getGroupEntries(long groupId,
Date displayDate,
QueryDefinition queryDefinition)
|
List<BlogsEntry> |
getGroupEntries(long groupId,
int status,
int start,
int end)
Deprecated. As of 6.2.0, replaced by getGroupEntries(long,
QueryDefinition) |
List<BlogsEntry> |
getGroupEntries(long groupId,
int status,
int start,
int end,
OrderByComparator obc)
Deprecated. As of 6.2.0, replaced by getGroupEntries(long,
QueryDefinition) |
List<BlogsEntry> |
getGroupEntries(long groupId,
QueryDefinition queryDefinition)
|
int |
getGroupEntriesCount(long groupId,
Date displayDate,
int status)
Deprecated. As of 6.2.0, replaced by getGroupEntriesCount(long,
Date, QueryDefinition) |
int |
getGroupEntriesCount(long groupId,
Date displayDate,
QueryDefinition queryDefinition)
|
int |
getGroupEntriesCount(long groupId,
int status)
Deprecated. As of 6.2.0, replaced by getGroupEntriesCount(long,
QueryDefinition) |
int |
getGroupEntriesCount(long groupId,
QueryDefinition queryDefinition)
|
List<BlogsEntry> |
getGroupsEntries(long companyId,
long groupId,
Date displayDate,
int status,
int start,
int end)
Deprecated. As of 6.2.0, replaced by getGroupsEntries(long, long,
Date, QueryDefinition) |
List<BlogsEntry> |
getGroupsEntries(long companyId,
long groupId,
Date displayDate,
QueryDefinition queryDefinition)
|
List<BlogsEntry> |
getGroupUserEntries(long groupId,
long userId,
Date displayDate,
int status,
int start,
int end)
Deprecated. As of 6.2.0, replaced by getGroupUserEntries(long,
long, Date, QueryDefinition) |
List<BlogsEntry> |
getGroupUserEntries(long groupId,
long userId,
Date displayDate,
int status,
int start,
int end,
OrderByComparator obc)
Deprecated. As of 6.2.0, replaced by getGroupUserEntries(long,
long, Date, QueryDefinition) |
List<BlogsEntry> |
getGroupUserEntries(long groupId,
long userId,
Date displayDate,
QueryDefinition queryDefinition)
|
int |
getGroupUserEntriesCount(long groupId,
long userId,
Date displayDate,
int status)
Deprecated. As of 6.2.0, replaced by getGroupUserEntriesCount(long, long, Date, QueryDefinition) |
int |
getGroupUserEntriesCount(long groupId,
long userId,
Date displayDate,
QueryDefinition queryDefinition)
|
List<BlogsEntry> |
getNoAssetEntries()
|
List<BlogsEntry> |
getOrganizationEntries(long organizationId,
Date displayDate,
int status,
int start,
int end)
Deprecated. As of 6.2.0, replaced by getOrganizationEntries(long,
Date, QueryDefinition) |
List<BlogsEntry> |
getOrganizationEntries(long organizationId,
Date displayDate,
int status,
int start,
int end,
OrderByComparator obc)
Deprecated. As of 6.2.0, replaced by getOrganizationEntries(long,
Date, QueryDefinition) |
List<BlogsEntry> |
getOrganizationEntries(long organizationId,
Date displayDate,
QueryDefinition queryDefinition)
|
int |
getOrganizationEntriesCount(long organizationId,
Date displayDate,
int status)
Deprecated. As of 6.2.0, replaced by getOrganizationEntriesCount(long, Date, QueryDefinition) |
int |
getOrganizationEntriesCount(long organizationId,
Date displayDate,
QueryDefinition queryDefinition)
|
protected String |
getUniqueUrlTitle(long entryId,
long groupId,
String title)
|
protected String |
getUniqueUrlTitle(long entryId,
String title,
String oldUrlTitle,
ServiceContext serviceContext)
|
void |
moveEntriesToTrash(long groupId,
long userId)
|
BlogsEntry |
moveEntryToTrash(long userId,
BlogsEntry entry)
Moves the blogs entry to the recycle bin. |
BlogsEntry |
moveEntryToTrash(long userId,
long entryId)
Moves the blogs entry with the ID to the recycle bin. |
protected void |
notifySubscribers(BlogsEntry entry,
ServiceContext serviceContext)
|
protected void |
pingGoogle(BlogsEntry entry,
ServiceContext serviceContext)
|
protected void |
pingPingback(BlogsEntry entry,
ServiceContext serviceContext)
|
protected void |
pingTrackbacks(BlogsEntry entry,
String[] trackbacks,
boolean pingOldTrackbacks,
ServiceContext serviceContext)
|
void |
restoreEntryFromTrash(long userId,
long entryId)
Restores the blogs entry with the ID from the recycle bin. |
protected void |
saveImages(boolean smallImage,
long smallImageId,
byte[] smallImageBytes)
|
void |
subscribe(long userId,
long groupId)
|
void |
unsubscribe(long userId,
long groupId)
|
void |
updateAsset(long userId,
BlogsEntry entry,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds)
|
BlogsEntry |
updateEntry(long userId,
long entryId,
String title,
String description,
String content,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
boolean allowPingbacks,
boolean allowTrackbacks,
String[] trackbacks,
boolean smallImage,
String smallImageURL,
String smallImageFileName,
InputStream smallImageInputStream,
ServiceContext serviceContext)
|
void |
updateEntryResources(BlogsEntry entry,
String[] groupPermissions,
String[] guestPermissions)
|
BlogsEntry |
updateStatus(long userId,
long entryId,
int status,
ServiceContext serviceContext)
|
protected void |
validate(String title,
String content,
boolean smallImage,
String smallImageURL,
String smallImageFileName,
byte[] smallImageBytes)
|
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl |
---|
getClassLoader, getLayoutURL, getLayoutURL |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlogsEntryLocalServiceImpl()
Method Detail |
---|
@Indexable(type=REINDEX) public BlogsEntry addEntry(long userId, String title, String description, String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, boolean smallImage, String smallImageURL, String smallImageFileName, InputStream smallImageInputStream, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
public void addEntryResources(BlogsEntry entry, boolean addGroupPermissions, boolean addGuestPermissions) throws PortalException, SystemException
PortalException
SystemException
public void addEntryResources(BlogsEntry entry, String[] groupPermissions, String[] guestPermissions) throws PortalException, SystemException
PortalException
SystemException
public void addEntryResources(long entryId, boolean addGroupPermissions, boolean addGuestPermissions) throws PortalException, SystemException
PortalException
SystemException
public void addEntryResources(long entryId, String[] groupPermissions, String[] guestPermissions) throws PortalException, SystemException
PortalException
SystemException
public void checkEntries() throws PortalException, SystemException
PortalException
SystemException
public void deleteEntries(long groupId) throws PortalException, SystemException
PortalException
SystemException
public void deleteEntry(BlogsEntry entry) throws PortalException, SystemException
PortalException
SystemException
public void deleteEntry(long entryId) throws PortalException, SystemException
PortalException
SystemException
public List<BlogsEntry> getCompanyEntries(long companyId, Date displayDate, int status, int start, int end) throws SystemException
getCompanyEntries(long,
Date, QueryDefinition)
SystemException
public List<BlogsEntry> getCompanyEntries(long companyId, Date displayDate, int status, int start, int end, OrderByComparator obc) throws SystemException
getCompanyEntries(long,
Date, QueryDefinition)
SystemException
public List<BlogsEntry> getCompanyEntries(long companyId, Date displayDate, QueryDefinition queryDefinition) throws SystemException
SystemException
public int getCompanyEntriesCount(long companyId, Date displayDate, int status) throws SystemException
getCompanyEntriesCount(long,
Date, QueryDefinition)
SystemException
public int getCompanyEntriesCount(long companyId, Date displayDate, QueryDefinition queryDefinition) throws SystemException
SystemException
public BlogsEntry[] getEntriesPrevAndNext(long entryId) throws PortalException, SystemException
PortalException
SystemException
public BlogsEntry getEntry(long entryId) throws PortalException, SystemException
PortalException
SystemException
public BlogsEntry getEntry(long groupId, String urlTitle) throws PortalException, SystemException
PortalException
SystemException
public List<BlogsEntry> getGroupEntries(long groupId, Date displayDate, int status, int start, int end) throws SystemException
getGroupEntries(long, Date,
QueryDefinition)
SystemException
public List<BlogsEntry> getGroupEntries(long groupId, Date displayDate, int status, int start, int end, OrderByComparator obc) throws SystemException
getGroupEntries(long, Date,
QueryDefinition)
SystemException
public List<BlogsEntry> getGroupEntries(long groupId, Date displayDate, QueryDefinition queryDefinition) throws SystemException
SystemException
public List<BlogsEntry> getGroupEntries(long groupId, int status, int start, int end) throws SystemException
getGroupEntries(long,
QueryDefinition)
SystemException
public List<BlogsEntry> getGroupEntries(long groupId, int status, int start, int end, OrderByComparator obc) throws SystemException
getGroupEntries(long,
QueryDefinition)
SystemException
public List<BlogsEntry> getGroupEntries(long groupId, QueryDefinition queryDefinition) throws SystemException
SystemException
public int getGroupEntriesCount(long groupId, Date displayDate, int status) throws SystemException
getGroupEntriesCount(long,
Date, QueryDefinition)
SystemException
public int getGroupEntriesCount(long groupId, Date displayDate, QueryDefinition queryDefinition) throws SystemException
SystemException
public int getGroupEntriesCount(long groupId, int status) throws SystemException
getGroupEntriesCount(long,
QueryDefinition)
SystemException
public int getGroupEntriesCount(long groupId, QueryDefinition queryDefinition) throws SystemException
SystemException
public List<BlogsEntry> getGroupsEntries(long companyId, long groupId, Date displayDate, int status, int start, int end) throws SystemException
getGroupsEntries(long, long,
Date, QueryDefinition)
SystemException
public List<BlogsEntry> getGroupsEntries(long companyId, long groupId, Date displayDate, QueryDefinition queryDefinition) throws SystemException
SystemException
public List<BlogsEntry> getGroupUserEntries(long groupId, long userId, Date displayDate, int status, int start, int end) throws SystemException
getGroupUserEntries(long,
long, Date, QueryDefinition)
SystemException
public List<BlogsEntry> getGroupUserEntries(long groupId, long userId, Date displayDate, int status, int start, int end, OrderByComparator obc) throws SystemException
getGroupUserEntries(long,
long, Date, QueryDefinition)
SystemException
public List<BlogsEntry> getGroupUserEntries(long groupId, long userId, Date displayDate, QueryDefinition queryDefinition) throws SystemException
SystemException
public int getGroupUserEntriesCount(long groupId, long userId, Date displayDate, int status) throws SystemException
getGroupUserEntriesCount(long, long, Date, QueryDefinition)
SystemException
public int getGroupUserEntriesCount(long groupId, long userId, Date displayDate, QueryDefinition queryDefinition) throws SystemException
SystemException
public List<BlogsEntry> getNoAssetEntries() throws SystemException
SystemException
public List<BlogsEntry> getOrganizationEntries(long organizationId, Date displayDate, int status, int start, int end) throws SystemException
getOrganizationEntries(long,
Date, QueryDefinition)
SystemException
public List<BlogsEntry> getOrganizationEntries(long organizationId, Date displayDate, int status, int start, int end, OrderByComparator obc) throws SystemException
getOrganizationEntries(long,
Date, QueryDefinition)
SystemException
public List<BlogsEntry> getOrganizationEntries(long organizationId, Date displayDate, QueryDefinition queryDefinition) throws SystemException
SystemException
public int getOrganizationEntriesCount(long organizationId, Date displayDate, int status) throws SystemException
getOrganizationEntriesCount(long, Date, QueryDefinition)
SystemException
public int getOrganizationEntriesCount(long organizationId, Date displayDate, QueryDefinition queryDefinition) throws SystemException
SystemException
public void moveEntriesToTrash(long groupId, long userId) throws PortalException, SystemException
PortalException
SystemException
@Indexable(type=REINDEX) public BlogsEntry moveEntryToTrash(long userId, BlogsEntry entry) throws PortalException, SystemException
userId
- the primary key of the user moving the blogs entryentry
- the blogs entry to be moved
PortalException
- if a user with the primary key could not be found
or if the blogs entry owner's social activity counter could not
be updated
SystemException
- if a system exception occurredpublic BlogsEntry moveEntryToTrash(long userId, long entryId) throws PortalException, SystemException
userId
- the primary key of the user moving the blogs entryentryId
- the primary key of the blogs entry to be moved
PortalException
- if a user or blogs entry with the primary key
could not be found or if the blogs entry owner's social activity
counter could not be updated
SystemException
- if a system exception occurredpublic void restoreEntryFromTrash(long userId, long entryId) throws PortalException, SystemException
userId
- the primary key of the user restoring the blogs entryentryId
- the primary key of the blogs entry to be restored
PortalException
- if a user or blogs entry with the primary key
could not be found or if the blogs entry owner's social activity
counter could not be updated
SystemException
- if a system exception occurredpublic void subscribe(long userId, long groupId) throws PortalException, SystemException
PortalException
SystemException
public void unsubscribe(long userId, long groupId) throws PortalException, SystemException
PortalException
SystemException
public void updateAsset(long userId, BlogsEntry entry, long[] assetCategoryIds, String[] assetTagNames, long[] assetLinkEntryIds) throws PortalException, SystemException
PortalException
SystemException
@Indexable(type=REINDEX) public BlogsEntry updateEntry(long userId, long entryId, String title, String description, String content, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, boolean allowPingbacks, boolean allowTrackbacks, String[] trackbacks, boolean smallImage, String smallImageURL, String smallImageFileName, InputStream smallImageInputStream, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
public void updateEntryResources(BlogsEntry entry, String[] groupPermissions, String[] guestPermissions) throws PortalException, SystemException
PortalException
SystemException
@Indexable(type=REINDEX) public BlogsEntry updateStatus(long userId, long entryId, int status, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
protected String getUniqueUrlTitle(long entryId, long groupId, String title) throws SystemException
SystemException
protected String getUniqueUrlTitle(long entryId, String title, String oldUrlTitle, ServiceContext serviceContext) throws SystemException
SystemException
protected void notifySubscribers(BlogsEntry entry, ServiceContext serviceContext) throws SystemException
SystemException
protected void pingGoogle(BlogsEntry entry, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
protected void pingPingback(BlogsEntry entry, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
protected void pingTrackbacks(BlogsEntry entry, String[] trackbacks, boolean pingOldTrackbacks, ServiceContext serviceContext) throws PortalException, SystemException
PortalException
SystemException
protected void saveImages(boolean smallImage, long smallImageId, byte[] smallImageBytes) throws PortalException, SystemException
PortalException
SystemException
protected void validate(String title, String content, boolean smallImage, String smallImageURL, String smallImageFileName, byte[] smallImageBytes) throws PortalException, SystemException
PortalException
SystemException
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |