Liferay 6.0.5

com.liferay.portlet.documentlibrary.service
Interface DLFileRankLocalService

All Known Implementing Classes:
DLFileRankLocalServiceBaseImpl, DLFileRankLocalServiceImpl, DLFileRankLocalServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface DLFileRankLocalService

The interface for the d l file rank local service.

Never modify or reference this interface directly. Always use DLFileRankLocalServiceUtil to access the d l file rank local service. Add custom service methods to DLFileRankLocalServiceImpl and rerun ServiceBuilder to automatically copy the method declarations to this interface.

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.

See Also:
DLFileRankLocalServiceUtil, DLFileRankLocalServiceBaseImpl, DLFileRankLocalServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Method Summary
 DLFileRank addDLFileRank(DLFileRank dlFileRank)
          Adds the d l file rank to the database.
 DLFileRank addFileRank(long groupId, long companyId, long userId, long folderId, String name, ServiceContext serviceContext)
           
 DLFileRank createDLFileRank(long fileRankId)
          Creates a new d l file rank with the primary key.
 void deleteDLFileRank(DLFileRank dlFileRank)
          Deletes the d l file rank from the database.
 void deleteDLFileRank(long fileRankId)
          Deletes the d l file rank with the primary key from the database.
 void deleteFileRanks(long userId)
           
 void deleteFileRanks(long folderId, String name)
           
 List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
 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.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Counts the number of rows that match the dynamic query.
 DLFileRank getDLFileRank(long fileRankId)
          Gets the d l file rank with the primary key.
 List<DLFileRank> getDLFileRanks(int start, int end)
          Gets a range of all the d l file ranks.
 int getDLFileRanksCount()
          Gets the number of d l file ranks.
 List<DLFileRank> getFileRanks(long groupId, long userId)
           
 List<DLFileRank> getFileRanks(long groupId, long userId, int start, int end)
           
 DLFileRank updateDLFileRank(DLFileRank dlFileRank)
          Updates the d l file rank in the database.
 DLFileRank updateDLFileRank(DLFileRank dlFileRank, boolean merge)
          Updates the d l file rank in the database.
 DLFileRank updateFileRank(long groupId, long companyId, long userId, long folderId, String name, ServiceContext serviceContext)
           
 

Method Detail

addDLFileRank

DLFileRank addDLFileRank(DLFileRank dlFileRank)
                         throws SystemException
Adds the d l file rank to the database. Also notifies the appropriate model listeners.

Parameters:
dlFileRank - the d l file rank to add
Returns:
the d l file rank that was added
Throws:
SystemException - if a system exception occurred

createDLFileRank

DLFileRank createDLFileRank(long fileRankId)
Creates a new d l file rank with the primary key. Does not add the d l file rank to the database.

Parameters:
fileRankId - the primary key for the new d l file rank
Returns:
the new d l file rank

deleteDLFileRank

void deleteDLFileRank(long fileRankId)
                      throws PortalException,
                             SystemException
Deletes the d l file rank with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
fileRankId - the primary key of the d l file rank to delete
Throws:
PortalException - if a d l file rank with the primary key could not be found
SystemException - if a system exception occurred

deleteDLFileRank

void deleteDLFileRank(DLFileRank dlFileRank)
                      throws SystemException
Deletes the d l file rank from the database. Also notifies the appropriate model listeners.

Parameters:
dlFileRank - the d l file rank to delete
Throws:
SystemException - if a system exception occurred

dynamicQuery

List dynamicQuery(DynamicQuery dynamicQuery)
                  throws SystemException
Performs a dynamic query on the database and returns the matching rows.

Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

List dynamicQuery(DynamicQuery dynamicQuery,
                  int start,
                  int end)
                  throws SystemException
Performs a dynamic query on the database and returns a range of the matching rows.

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.

Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
Returns:
the range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

List dynamicQuery(DynamicQuery dynamicQuery,
                  int start,
                  int end,
                  OrderByComparator orderByComparator)
                  throws SystemException
Performs a dynamic query on the database and returns an ordered range of the matching rows.

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.

Parameters:
dynamicQuery - the dynamic query to search with
start - the lower bound of the range of model instances to return
end - the upper bound of the range of model instances to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Counts the number of rows that match the dynamic query.

Parameters:
dynamicQuery - the dynamic query to search with
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

getDLFileRank

@Transactional(propagation=SUPPORTS,
               readOnly=true)
DLFileRank getDLFileRank(long fileRankId)
                         throws PortalException,
                                SystemException
Gets the d l file rank with the primary key.

Parameters:
fileRankId - the primary key of the d l file rank to get
Returns:
the d l file rank
Throws:
PortalException - if a d l file rank with the primary key could not be found
SystemException - if a system exception occurred

getDLFileRanks

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<DLFileRank> getDLFileRanks(int start,
                                                                         int end)
                                throws SystemException
Gets a range of all the d l file ranks.

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.

Parameters:
start - the lower bound of the range of d l file ranks to return
end - the upper bound of the range of d l file ranks to return (not inclusive)
Returns:
the range of d l file ranks
Throws:
SystemException - if a system exception occurred

getDLFileRanksCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getDLFileRanksCount()
                        throws SystemException
Gets the number of d l file ranks.

Returns:
the number of d l file ranks
Throws:
SystemException - if a system exception occurred

updateDLFileRank

DLFileRank updateDLFileRank(DLFileRank dlFileRank)
                            throws SystemException
Updates the d l file rank in the database. Also notifies the appropriate model listeners.

Parameters:
dlFileRank - the d l file rank to update
Returns:
the d l file rank that was updated
Throws:
SystemException - if a system exception occurred

updateDLFileRank

DLFileRank updateDLFileRank(DLFileRank dlFileRank,
                            boolean merge)
                            throws SystemException
Updates the d l file rank in the database. Also notifies the appropriate model listeners.

Parameters:
dlFileRank - the d l file rank to update
merge - whether to merge the d l file rank with the current session. See BatchSession.update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean) for an explanation.
Returns:
the d l file rank that was updated
Throws:
SystemException - if a system exception occurred

addFileRank

DLFileRank addFileRank(long groupId,
                       long companyId,
                       long userId,
                       long folderId,
                       String name,
                       ServiceContext serviceContext)
                       throws SystemException
Throws:
SystemException

deleteFileRanks

void deleteFileRanks(long userId)
                     throws SystemException
Throws:
SystemException

deleteFileRanks

void deleteFileRanks(long folderId,
                     String name)
                     throws SystemException
Throws:
SystemException

getFileRanks

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<DLFileRank> getFileRanks(long groupId,
                                                                       long userId)
                              throws SystemException
Throws:
SystemException

getFileRanks

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<DLFileRank> getFileRanks(long groupId,
                                                                       long userId,
                                                                       int start,
                                                                       int end)
                              throws SystemException
Throws:
SystemException

updateFileRank

DLFileRank updateFileRank(long groupId,
                          long companyId,
                          long userId,
                          long folderId,
                          String name,
                          ServiceContext serviceContext)
                          throws SystemException
Throws:
SystemException

Liferay 6.0.5