com.liferay.portlet.bookmarks.service.impl
Class BookmarksEntryLocalServiceImpl

java.lang.Object
  extended bycom.liferay.portlet.bookmarks.service.impl.BookmarksEntryLocalServiceImpl
All Implemented Interfaces:
BookmarksEntryLocalService

public class BookmarksEntryLocalServiceImpl
extends java.lang.Object
implements BookmarksEntryLocalService

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
BookmarksEntryLocalServiceImpl()
           
 
Method Summary
 BookmarksEntry addEntry(java.lang.String userId, java.lang.String folderId, java.lang.String name, java.lang.String url, java.lang.String comments, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addEntryResources(BookmarksFolder folder, BookmarksEntry entry, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addEntryResources(java.lang.String folderId, java.lang.String entryId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void deleteEntries(java.lang.String folderId)
           
 void deleteEntry(BookmarksEntry entry)
           
 void deleteEntry(java.lang.String entryId)
           
 java.util.List getEntries(java.lang.String folderId, int begin, int end)
           
 int getEntriesCount(java.lang.String folderId)
           
 BookmarksEntry getEntry(java.lang.String entryId)
           
protected  java.lang.String getFolderId(java.lang.String companyId, java.lang.String folderId)
           
 int getFoldersEntriesCount(java.util.List folderIds)
           
 BookmarksEntry openEntry(java.lang.String entryId)
           
 BookmarksEntry updateEntry(java.lang.String companyId, java.lang.String entryId, java.lang.String folderId, java.lang.String name, java.lang.String url, java.lang.String comments)
           
protected  void validate(java.lang.String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BookmarksEntryLocalServiceImpl

public BookmarksEntryLocalServiceImpl()
Method Detail

addEntry

public BookmarksEntry addEntry(java.lang.String userId,
                               java.lang.String folderId,
                               java.lang.String name,
                               java.lang.String url,
                               java.lang.String comments,
                               boolean addCommunityPermissions,
                               boolean addGuestPermissions)
                        throws PortalException,
                               SystemException
Specified by:
addEntry in interface BookmarksEntryLocalService
Throws:
PortalException
SystemException

addEntryResources

public void addEntryResources(java.lang.String folderId,
                              java.lang.String entryId,
                              boolean addCommunityPermissions,
                              boolean addGuestPermissions)
                       throws PortalException,
                              SystemException
Specified by:
addEntryResources in interface BookmarksEntryLocalService
Throws:
PortalException
SystemException

addEntryResources

public void addEntryResources(BookmarksFolder folder,
                              BookmarksEntry entry,
                              boolean addCommunityPermissions,
                              boolean addGuestPermissions)
                       throws PortalException,
                              SystemException
Specified by:
addEntryResources in interface BookmarksEntryLocalService
Throws:
PortalException
SystemException

deleteEntries

public void deleteEntries(java.lang.String folderId)
                   throws PortalException,
                          SystemException
Specified by:
deleteEntries in interface BookmarksEntryLocalService
Throws:
PortalException
SystemException

deleteEntry

public void deleteEntry(java.lang.String entryId)
                 throws PortalException,
                        SystemException
Specified by:
deleteEntry in interface BookmarksEntryLocalService
Throws:
PortalException
SystemException

deleteEntry

public void deleteEntry(BookmarksEntry entry)
                 throws PortalException,
                        SystemException
Specified by:
deleteEntry in interface BookmarksEntryLocalService
Throws:
PortalException
SystemException

getEntries

public java.util.List getEntries(java.lang.String folderId,
                                 int begin,
                                 int end)
                          throws SystemException
Specified by:
getEntries in interface BookmarksEntryLocalService
Throws:
SystemException

getEntriesCount

public int getEntriesCount(java.lang.String folderId)
                    throws SystemException
Specified by:
getEntriesCount in interface BookmarksEntryLocalService
Throws:
SystemException

getEntry

public BookmarksEntry getEntry(java.lang.String entryId)
                        throws PortalException,
                               SystemException
Specified by:
getEntry in interface BookmarksEntryLocalService
Throws:
PortalException
SystemException

getFoldersEntriesCount

public int getFoldersEntriesCount(java.util.List folderIds)
                           throws SystemException
Specified by:
getFoldersEntriesCount in interface BookmarksEntryLocalService
Throws:
SystemException

openEntry

public BookmarksEntry openEntry(java.lang.String entryId)
                         throws PortalException,
                                SystemException
Specified by:
openEntry in interface BookmarksEntryLocalService
Throws:
PortalException
SystemException

updateEntry

public BookmarksEntry updateEntry(java.lang.String companyId,
                                  java.lang.String entryId,
                                  java.lang.String folderId,
                                  java.lang.String name,
                                  java.lang.String url,
                                  java.lang.String comments)
                           throws PortalException,
                                  SystemException
Specified by:
updateEntry in interface BookmarksEntryLocalService
Throws:
PortalException
SystemException

getFolderId

protected java.lang.String getFolderId(java.lang.String companyId,
                                       java.lang.String folderId)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

validate

protected void validate(java.lang.String url)
                 throws PortalException
Throws:
PortalException