Liferay 6.1.2-ce-ga3

com.liferay.portlet.documentlibrary.service
Class DLSyncLocalServiceUtil

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

public class DLSyncLocalServiceUtil
extends Object

The utility for the d l sync local service. This utility wraps DLSyncLocalServiceImpl and is the primary access point for service operations in application layer code running on the local server.

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:
DLSyncLocalService, DLSyncLocalServiceBaseImpl, DLSyncLocalServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
DLSyncLocalServiceUtil()
           
 
Method Summary
static DLSync addDLSync(DLSync dlSync)
          Adds the d l sync to the database.
static DLSync addSync(long fileId, String fileUuid, long companyId, long repositoryId, long parentFolderId, String name, String type, String version)
          Deprecated. addSync(long, String, long, long, long, String, String, String, String)
static DLSync addSync(long fileId, String fileUuid, long companyId, long repositoryId, long parentFolderId, String name, String description, String type, String version)
           
static DLSync createDLSync(long syncId)
          Creates a new d l sync with the primary key.
static DLSync deleteDLSync(DLSync dlSync)
          Deletes the d l sync from the database.
static DLSync deleteDLSync(long syncId)
          Deletes the d l sync with the primary key from the database.
static DynamicQuery dynamicQuery()
           
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)
          Returns the number of rows that match the dynamic query.
static DLSync fetchDLSync(long syncId)
           
static String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
static DLSync getDLSync(long syncId)
          Returns the d l sync with the primary key.
static List<DLSync> getDLSyncs(int start, int end)
          Returns a range of all the d l syncs.
static int getDLSyncsCount()
          Returns the number of d l syncs.
static PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
static DLSyncLocalService getService()
           
static void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setService(DLSyncLocalService service)
          Deprecated.  
static DLSync updateDLSync(DLSync dlSync)
          Updates the d l sync in the database or adds it if it does not yet exist.
static DLSync updateDLSync(DLSync dlSync, boolean merge)
          Updates the d l sync in the database or adds it if it does not yet exist.
static DLSync updateSync(long fileId, long parentFolderId, String name, String event, String version)
          Deprecated. updateSync(long, long, String, String, String, String)
static DLSync updateSync(long fileId, long parentFolderId, String name, String description, String event, String version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLSyncLocalServiceUtil

public DLSyncLocalServiceUtil()
Method Detail

addDLSync

public static DLSync addDLSync(DLSync dlSync)
                        throws SystemException
Adds the d l sync to the database. Also notifies the appropriate model listeners.

Parameters:
dlSync - the d l sync
Returns:
the d l sync that was added
Throws:
SystemException - if a system exception occurred

createDLSync

public static DLSync createDLSync(long syncId)
Creates a new d l sync with the primary key. Does not add the d l sync to the database.

Parameters:
syncId - the primary key for the new d l sync
Returns:
the new d l sync

deleteDLSync

public static DLSync deleteDLSync(long syncId)
                           throws PortalException,
                                  SystemException
Deletes the d l sync with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
syncId - the primary key of the d l sync
Returns:
the d l sync that was removed
Throws:
PortalException - if a d l sync with the primary key could not be found
SystemException - if a system exception occurred

deleteDLSync

public static DLSync deleteDLSync(DLSync dlSync)
                           throws SystemException
Deletes the d l sync from the database. Also notifies the appropriate model listeners.

Parameters:
dlSync - the d l sync
Returns:
the d l sync that was removed
Throws:
SystemException - if a system exception occurred

dynamicQuery

public static DynamicQuery dynamicQuery()

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
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
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (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
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

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

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

fetchDLSync

public static DLSync fetchDLSync(long syncId)
                          throws SystemException
Throws:
SystemException

getDLSync

public static DLSync getDLSync(long syncId)
                        throws PortalException,
                               SystemException
Returns the d l sync with the primary key.

Parameters:
syncId - the primary key of the d l sync
Returns:
the d l sync
Throws:
PortalException - if a d l sync with the primary key could not be found
SystemException - if a system exception occurred

getPersistedModel

public static PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                        throws PortalException,
                                               SystemException
Throws:
PortalException
SystemException

getDLSyncs

public static List<DLSync> getDLSyncs(int start,
                                      int end)
                               throws SystemException
Returns a range of all the d l syncs.

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 syncs
end - the upper bound of the range of d l syncs (not inclusive)
Returns:
the range of d l syncs
Throws:
SystemException - if a system exception occurred

getDLSyncsCount

public static int getDLSyncsCount()
                           throws SystemException
Returns the number of d l syncs.

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

updateDLSync

public static DLSync updateDLSync(DLSync dlSync)
                           throws SystemException
Updates the d l sync in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Parameters:
dlSync - the d l sync
Returns:
the d l sync that was updated
Throws:
SystemException - if a system exception occurred

updateDLSync

public static DLSync updateDLSync(DLSync dlSync,
                                  boolean merge)
                           throws SystemException
Updates the d l sync in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Parameters:
dlSync - the d l sync
merge - whether to merge the d l sync 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 sync that was updated
Throws:
SystemException - if a system exception occurred

getBeanIdentifier

public static String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

setBeanIdentifier

public static void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

addSync

public static DLSync addSync(long fileId,
                             String fileUuid,
                             long companyId,
                             long repositoryId,
                             long parentFolderId,
                             String name,
                             String type,
                             String version)
                      throws PortalException,
                             SystemException
Deprecated. addSync(long, String, long, long, long, String, String, String, String)

Throws:
PortalException
SystemException

addSync

public static DLSync addSync(long fileId,
                             String fileUuid,
                             long companyId,
                             long repositoryId,
                             long parentFolderId,
                             String name,
                             String description,
                             String type,
                             String version)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

updateSync

public static DLSync updateSync(long fileId,
                                long parentFolderId,
                                String name,
                                String event,
                                String version)
                         throws PortalException,
                                SystemException
Deprecated. updateSync(long, long, String, String, String, String)

Throws:
PortalException
SystemException

updateSync

public static DLSync updateSync(long fileId,
                                long parentFolderId,
                                String name,
                                String description,
                                String event,
                                String version)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

getService

public static DLSyncLocalService getService()

setService

public void setService(DLSyncLocalService service)
Deprecated. 


Liferay 6.1.2-ce-ga3