|
Liferay 7.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 | |
|---|---|
protected CommentManager |
commentManager
|
| Constructor Summary | |
|---|---|
BlogsEntryLocalServiceImpl()
|
|
| Method Summary | |
|---|---|
Folder |
addAttachmentsFolder(long userId,
long groupId)
|
protected long |
addCoverImage(long userId,
long groupId,
long entryId,
ImageSelector coverImageImageSelector)
|
protected void |
addDiscussion(BlogsEntry entry,
long userId,
long groupId)
|
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)
Deprecated. As of 7.0.0, replaced by #addEntry(long, String,
String, String, String, int, int, int, int, int, boolean,
boolean, String[], boolean, String, String, InputStream,
ServiceContext) |
BlogsEntry |
addEntry(long userId,
String title,
String subtitle,
String description,
String content,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
boolean allowPingbacks,
boolean allowTrackbacks,
String[] trackbacks,
ImageSelector coverImageImageSelector,
ImageSelector smallImageImageSelector,
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)
|
protected long |
addSmallImageFileEntry(long userId,
long groupId,
long entryId,
String mimeType,
String title,
InputStream is)
|
void |
checkEntries()
|
protected void |
deleteDiscussion(BlogsEntry entry)
|
void |
deleteEntries(long groupId)
|
BlogsEntry |
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<BlogsEntry> obc)
Deprecated. As of 6.2.0, replaced by getCompanyEntries(long,
Date, QueryDefinition) |
List<BlogsEntry> |
getCompanyEntries(long companyId,
Date displayDate,
QueryDefinition<BlogsEntry> 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<BlogsEntry> queryDefinition)
|
BlogsEntry[] |
getEntriesPrevAndNext(long entryId)
|
BlogsEntry |
getEntry(long entryId)
|
BlogsEntry |
getEntry(long groupId,
String urlTitle)
|
protected String |
getEntryURL(BlogsEntry entry,
ServiceContext serviceContext)
|
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<BlogsEntry> obc)
Deprecated. As of 6.2.0, replaced by getGroupEntries(long, Date,
QueryDefinition) |
List<BlogsEntry> |
getGroupEntries(long groupId,
Date displayDate,
QueryDefinition<BlogsEntry> 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<BlogsEntry> obc)
Deprecated. As of 6.2.0, replaced by getGroupEntries(long,
QueryDefinition) |
List<BlogsEntry> |
getGroupEntries(long groupId,
QueryDefinition<BlogsEntry> 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<BlogsEntry> queryDefinition)
|
int |
getGroupEntriesCount(long groupId,
int status)
Deprecated. As of 6.2.0, replaced by getGroupEntriesCount(long,
QueryDefinition) |
int |
getGroupEntriesCount(long groupId,
QueryDefinition<BlogsEntry> 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<BlogsEntry> 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<BlogsEntry> obc)
Deprecated. As of 6.2.0, replaced by getGroupUserEntries(long,
long, Date, QueryDefinition) |
List<BlogsEntry> |
getGroupUserEntries(long groupId,
long userId,
Date displayDate,
QueryDefinition<BlogsEntry> 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<BlogsEntry> 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<BlogsEntry> obc)
Deprecated. As of 6.2.0, replaced by getOrganizationEntries(long,
Date, QueryDefinition) |
List<BlogsEntry> |
getOrganizationEntries(long organizationId,
Date displayDate,
QueryDefinition<BlogsEntry> 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<BlogsEntry> 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,
Map<String,Serializable> workflowContext)
|
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)
|
BlogsEntry |
restoreEntryFromTrash(long userId,
long entryId)
Restores the blogs entry with the ID from the recycle bin. |
protected BlogsEntry |
startWorkflowInstance(long userId,
BlogsEntry entry,
ServiceContext serviceContext)
|
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)
Deprecated. As of 7.0.0, replaced by #updateEntry(long, long,
String, String, String, String, int, int, int, int, int,
boolean, boolean, String[], boolean, String, long,
ServiceContext) |
BlogsEntry |
updateEntry(long userId,
long entryId,
String title,
String subtitle,
String description,
String content,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
boolean allowPingbacks,
boolean allowTrackbacks,
String[] trackbacks,
ImageSelector coverImageImageSelector,
ImageSelector smallImageImageSelector,
ServiceContext serviceContext)
|
void |
updateEntryResources(BlogsEntry entry,
String[] groupPermissions,
String[] guestPermissions)
|
BlogsEntry |
updateStatus(long userId,
long entryId,
int status,
ServiceContext serviceContext)
Deprecated. As of 7.0.0, replaced by updateStatus(long, long,
int, ServiceContext, Map) |
BlogsEntry |
updateStatus(long userId,
long entryId,
int status,
ServiceContext serviceContext,
Map<String,Serializable> workflowContext)
|
protected void |
validate(String title,
String content,
long smallImageFileEntryId)
|
| Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl |
|---|
getClassLoader |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@BeanReference(type=CommentManager.class) protected CommentManager commentManager
| Constructor Detail |
|---|
public BlogsEntryLocalServiceImpl()
| Method Detail |
|---|
public Folder addAttachmentsFolder(long userId,
long groupId)
throws PortalException
PortalException
@Deprecated
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
#addEntry(long, String,
String, String, String, int, int, int, int, int, boolean,
boolean, String[], boolean, String, String, InputStream,
ServiceContext)
PortalException
@Indexable(type=REINDEX)
public BlogsEntry addEntry(long userId,
String title,
String subtitle,
String description,
String content,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
boolean allowPingbacks,
boolean allowTrackbacks,
String[] trackbacks,
ImageSelector coverImageImageSelector,
ImageSelector smallImageImageSelector,
ServiceContext serviceContext)
throws PortalException
PortalException
public void addEntryResources(BlogsEntry entry,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException
PortalException
public void addEntryResources(BlogsEntry entry,
String[] groupPermissions,
String[] guestPermissions)
throws PortalException
PortalException
public void addEntryResources(long entryId,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException
PortalException
public void addEntryResources(long entryId,
String[] groupPermissions,
String[] guestPermissions)
throws PortalException
PortalException
public void checkEntries()
throws PortalException
PortalException
public void deleteEntries(long groupId)
throws PortalException
PortalException
@Indexable(type=DELETE)
@SystemEvent(type=1)
public BlogsEntry deleteEntry(BlogsEntry entry)
throws PortalException
PortalException
public void deleteEntry(long entryId)
throws PortalException
PortalException
@Deprecated
public List<BlogsEntry> getCompanyEntries(long companyId,
Date displayDate,
int status,
int start,
int end)
getCompanyEntries(long,
Date, QueryDefinition)
@Deprecated
public List<BlogsEntry> getCompanyEntries(long companyId,
Date displayDate,
int status,
int start,
int end,
OrderByComparator<BlogsEntry> obc)
getCompanyEntries(long,
Date, QueryDefinition)
public List<BlogsEntry> getCompanyEntries(long companyId,
Date displayDate,
QueryDefinition<BlogsEntry> queryDefinition)
@Deprecated
public int getCompanyEntriesCount(long companyId,
Date displayDate,
int status)
getCompanyEntriesCount(long,
Date, QueryDefinition)
public int getCompanyEntriesCount(long companyId,
Date displayDate,
QueryDefinition<BlogsEntry> queryDefinition)
public BlogsEntry[] getEntriesPrevAndNext(long entryId)
throws PortalException
PortalException
public BlogsEntry getEntry(long entryId)
throws PortalException
PortalException
public BlogsEntry getEntry(long groupId,
String urlTitle)
throws PortalException
PortalException
@Deprecated
public List<BlogsEntry> getGroupEntries(long groupId,
Date displayDate,
int status,
int start,
int end)
getGroupEntries(long, Date,
QueryDefinition)
@Deprecated
public List<BlogsEntry> getGroupEntries(long groupId,
Date displayDate,
int status,
int start,
int end,
OrderByComparator<BlogsEntry> obc)
getGroupEntries(long, Date,
QueryDefinition)
public List<BlogsEntry> getGroupEntries(long groupId,
Date displayDate,
QueryDefinition<BlogsEntry> queryDefinition)
@Deprecated
public List<BlogsEntry> getGroupEntries(long groupId,
int status,
int start,
int end)
getGroupEntries(long,
QueryDefinition)
@Deprecated
public List<BlogsEntry> getGroupEntries(long groupId,
int status,
int start,
int end,
OrderByComparator<BlogsEntry> obc)
getGroupEntries(long,
QueryDefinition)
public List<BlogsEntry> getGroupEntries(long groupId,
QueryDefinition<BlogsEntry> queryDefinition)
@Deprecated
public int getGroupEntriesCount(long groupId,
Date displayDate,
int status)
getGroupEntriesCount(long,
Date, QueryDefinition)
public int getGroupEntriesCount(long groupId,
Date displayDate,
QueryDefinition<BlogsEntry> queryDefinition)
@Deprecated
public int getGroupEntriesCount(long groupId,
int status)
getGroupEntriesCount(long,
QueryDefinition)
public int getGroupEntriesCount(long groupId,
QueryDefinition<BlogsEntry> queryDefinition)
@Deprecated
public List<BlogsEntry> getGroupsEntries(long companyId,
long groupId,
Date displayDate,
int status,
int start,
int end)
getGroupsEntries(long, long,
Date, QueryDefinition)
public List<BlogsEntry> getGroupsEntries(long companyId,
long groupId,
Date displayDate,
QueryDefinition<BlogsEntry> queryDefinition)
@Deprecated
public List<BlogsEntry> getGroupUserEntries(long groupId,
long userId,
Date displayDate,
int status,
int start,
int end)
getGroupUserEntries(long,
long, Date, QueryDefinition)
@Deprecated
public List<BlogsEntry> getGroupUserEntries(long groupId,
long userId,
Date displayDate,
int status,
int start,
int end,
OrderByComparator<BlogsEntry> obc)
getGroupUserEntries(long,
long, Date, QueryDefinition)
public List<BlogsEntry> getGroupUserEntries(long groupId,
long userId,
Date displayDate,
QueryDefinition<BlogsEntry> queryDefinition)
@Deprecated
public int getGroupUserEntriesCount(long groupId,
long userId,
Date displayDate,
int status)
getGroupUserEntriesCount(long, long, Date, QueryDefinition)
public int getGroupUserEntriesCount(long groupId,
long userId,
Date displayDate,
QueryDefinition<BlogsEntry> queryDefinition)
public List<BlogsEntry> getNoAssetEntries()
@Deprecated
public List<BlogsEntry> getOrganizationEntries(long organizationId,
Date displayDate,
int status,
int start,
int end)
getOrganizationEntries(long,
Date, QueryDefinition)
@Deprecated
public List<BlogsEntry> getOrganizationEntries(long organizationId,
Date displayDate,
int status,
int start,
int end,
OrderByComparator<BlogsEntry> obc)
getOrganizationEntries(long,
Date, QueryDefinition)
public List<BlogsEntry> getOrganizationEntries(long organizationId,
Date displayDate,
QueryDefinition<BlogsEntry> queryDefinition)
@Deprecated
public int getOrganizationEntriesCount(long organizationId,
Date displayDate,
int status)
getOrganizationEntriesCount(long, Date, QueryDefinition)
public int getOrganizationEntriesCount(long organizationId,
Date displayDate,
QueryDefinition<BlogsEntry> queryDefinition)
public void moveEntriesToTrash(long groupId,
long userId)
throws PortalException
PortalException
@Indexable(type=REINDEX)
public BlogsEntry moveEntryToTrash(long userId,
BlogsEntry entry)
throws PortalException
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
public BlogsEntry moveEntryToTrash(long userId,
long entryId)
throws PortalException
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
@Indexable(type=REINDEX)
public BlogsEntry restoreEntryFromTrash(long userId,
long entryId)
throws PortalException
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
public void subscribe(long userId,
long groupId)
throws PortalException
PortalException
public void unsubscribe(long userId,
long groupId)
throws PortalException
PortalException
public void updateAsset(long userId,
BlogsEntry entry,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds)
throws PortalException
PortalException
@Deprecated
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
#updateEntry(long, long,
String, String, String, String, int, int, int, int, int,
boolean, boolean, String[], boolean, String, long,
ServiceContext)
PortalException
@Indexable(type=REINDEX)
public BlogsEntry updateEntry(long userId,
long entryId,
String title,
String subtitle,
String description,
String content,
int displayDateMonth,
int displayDateDay,
int displayDateYear,
int displayDateHour,
int displayDateMinute,
boolean allowPingbacks,
boolean allowTrackbacks,
String[] trackbacks,
ImageSelector coverImageImageSelector,
ImageSelector smallImageImageSelector,
ServiceContext serviceContext)
throws PortalException
PortalException
public void updateEntryResources(BlogsEntry entry,
String[] groupPermissions,
String[] guestPermissions)
throws PortalException
PortalException
@Deprecated
public BlogsEntry updateStatus(long userId,
long entryId,
int status,
ServiceContext serviceContext)
throws PortalException
updateStatus(long, long,
int, ServiceContext, Map)
PortalException
@Indexable(type=REINDEX)
public BlogsEntry updateStatus(long userId,
long entryId,
int status,
ServiceContext serviceContext,
Map<String,Serializable> workflowContext)
throws PortalException
PortalException
protected long addCoverImage(long userId,
long groupId,
long entryId,
ImageSelector coverImageImageSelector)
throws PortalException
PortalException
protected void addDiscussion(BlogsEntry entry,
long userId,
long groupId)
throws PortalException
PortalException
protected long addSmallImageFileEntry(long userId,
long groupId,
long entryId,
String mimeType,
String title,
InputStream is)
throws PortalException
PortalException
protected void deleteDiscussion(BlogsEntry entry)
throws PortalException
PortalException
protected String getEntryURL(BlogsEntry entry,
ServiceContext serviceContext)
throws PortalException
PortalException
protected String getUniqueUrlTitle(long entryId,
long groupId,
String title)
protected String getUniqueUrlTitle(long entryId,
String title,
String oldUrlTitle,
ServiceContext serviceContext)
protected void notifySubscribers(BlogsEntry entry,
ServiceContext serviceContext,
Map<String,Serializable> workflowContext)
throws PortalException
PortalException
protected void pingGoogle(BlogsEntry entry,
ServiceContext serviceContext)
throws PortalException
PortalException
protected void pingPingback(BlogsEntry entry,
ServiceContext serviceContext)
throws PortalException
PortalException
protected void pingTrackbacks(BlogsEntry entry,
String[] trackbacks,
boolean pingOldTrackbacks,
ServiceContext serviceContext)
throws PortalException
PortalException
protected BlogsEntry startWorkflowInstance(long userId,
BlogsEntry entry,
ServiceContext serviceContext)
throws PortalException
PortalException
protected void validate(String title,
String content,
long smallImageFileEntryId)
throws PortalException
PortalException
|
Liferay 7.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||