Liferay 6.0.5

com.liferay.portlet.documentlibrary.service
Class DLFileRankLocalServiceUtil

java.lang.Object
  extended by com.liferay.portlet.documentlibrary.service.DLFileRankLocalServiceUtil

public class DLFileRankLocalServiceUtil
extends Object

The utility for the d l file rank local service. This utility wraps DLFileRankLocalServiceImpl 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 DLFileRankLocalServiceImpl 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.

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

Constructor Summary
DLFileRankLocalServiceUtil()
           
 
Method Summary
static DLFileRank addDLFileRank(DLFileRank dlFileRank)
          Adds the d l file rank to the database.
static DLFileRank addFileRank(long groupId, long companyId, long userId, long folderId, String name, ServiceContext serviceContext)
           
static DLFileRank createDLFileRank(long fileRankId)
          Creates a new d l file rank with the primary key.
static void deleteDLFileRank(DLFileRank dlFileRank)
          Deletes the d l file rank from the database.
static void deleteDLFileRank(long fileRankId)
          Deletes the d l file rank with the primary key from the database.
static void deleteFileRanks(long userId)
           
static void deleteFileRanks(long folderId, String name)
           
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 DLFileRank getDLFileRank(long fileRankId)
          Gets the d l file rank with the primary key.
static List<DLFileRank> getDLFileRanks(int start, int end)
          Gets a range of all the d l file ranks.
static int getDLFileRanksCount()
          Gets the number of d l file ranks.
static List<DLFileRank> getFileRanks(long groupId, long userId)
           
static List<DLFileRank> getFileRanks(long groupId, long userId, int start, int end)
           
static DLFileRankLocalService getService()
           
 void setService(DLFileRankLocalService service)
           
static DLFileRank updateDLFileRank(DLFileRank dlFileRank)
          Updates the d l file rank in the database.
static DLFileRank updateDLFileRank(DLFileRank dlFileRank, boolean merge)
          Updates the d l file rank in the database.
static DLFileRank updateFileRank(long groupId, long companyId, long userId, long folderId, String name, ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLFileRankLocalServiceUtil

public DLFileRankLocalServiceUtil()
Method Detail

addDLFileRank

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

public static 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

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

deleteFileRanks

public static void deleteFileRanks(long userId)
                            throws SystemException
Throws:
SystemException

deleteFileRanks

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

getFileRanks

public static List<DLFileRank> getFileRanks(long groupId,
                                            long userId)
                                     throws SystemException
Throws:
SystemException

getFileRanks

public static List<DLFileRank> getFileRanks(long groupId,
                                            long userId,
                                            int start,
                                            int end)
                                     throws SystemException
Throws:
SystemException

updateFileRank

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

getService

public static DLFileRankLocalService getService()

setService

public void setService(DLFileRankLocalService service)

Liferay 6.0.5