Liferay 6.1.0

com.liferay.portlet.documentlibrary.service
Class DLFileEntryTypeLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalServiceWrapper
All Implemented Interfaces:
PersistedModelLocalService, DLFileEntryTypeLocalService

public class DLFileEntryTypeLocalServiceWrapper
extends Object
implements DLFileEntryTypeLocalService

This class is a wrapper for DLFileEntryTypeLocalService.

See Also:
DLFileEntryTypeLocalService

Constructor Summary
DLFileEntryTypeLocalServiceWrapper(DLFileEntryTypeLocalService dlFileEntryTypeLocalService)
           
 
Method Summary
 DLFileEntryType addDLFileEntryType(DLFileEntryType dlFileEntryType)
          Adds the document library file entry type to the database.
 DLFileEntryType addFileEntryType(long userId, long groupId, String name, String description, long[] ddmStructureIds, ServiceContext serviceContext)
           
 void cascadeFileEntryTypes(long userId, DLFolder dlFolder)
           
 DLFileEntryType createDLFileEntryType(long fileEntryTypeId)
          Creates a new document library file entry type with the primary key.
 void deleteDLFileEntryType(DLFileEntryType dlFileEntryType)
          Deletes the document library file entry type from the database.
 void deleteDLFileEntryType(long fileEntryTypeId)
          Deletes the document library file entry type with the primary key from the database.
 void deleteFileEntryType(long fileEntryTypeId)
           
 void deleteFileEntryTypes(long folderId)
           
 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)
          Returns the number of rows that match the dynamic query.
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 long getDefaultFileEntryType(long folderId)
           
 DLFileEntryType getDLFileEntryType(long fileEntryTypeId)
          Returns the document library file entry type with the primary key.
 List<DLFileEntryType> getDLFileEntryTypes(int start, int end)
          Returns a range of all the document library file entry types.
 int getDLFileEntryTypesCount()
          Returns the number of document library file entry types.
 DLFileEntryType getFileEntryType(long fileEntryTypeId)
           
 DLFileEntryType getFileEntryType(long groupId, String name)
           
 List<DLFileEntryType> getFileEntryTypes(long[] groupIds)
           
 List<DLFileEntryType> getFileEntryTypes(long groupId, int start, int end)
           
 List<DLFileEntryType> getFolderFileEntryTypes(long[] groupIds, long folderId, boolean inherited)
           
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 DLFileEntryTypeLocalService getWrappedDLFileEntryTypeLocalService()
           
 List<DLFileEntryType> search(long companyId, long[] groupIds, String keywords, int start, int end, OrderByComparator orderByComparator)
           
 int searchCount(long companyId, long[] groupIds, String keywords)
           
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setWrappedDLFileEntryTypeLocalService(DLFileEntryTypeLocalService dlFileEntryTypeLocalService)
           
 DLFileEntryType updateDLFileEntryType(DLFileEntryType dlFileEntryType)
          Updates the document library file entry type in the database or adds it if it does not yet exist.
 DLFileEntryType updateDLFileEntryType(DLFileEntryType dlFileEntryType, boolean merge)
          Updates the document library file entry type in the database or adds it if it does not yet exist.
 void updateFileEntryType(long userId, long fileEntryTypeId, String name, String description, long[] ddmStructureIds, ServiceContext serviceContext)
           
 void updateFolderFileEntryTypes(DLFolder dlFolder, List<Long> fileEntryTypeIds, long defaultFileEntryTypeId, ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLFileEntryTypeLocalServiceWrapper

public DLFileEntryTypeLocalServiceWrapper(DLFileEntryTypeLocalService dlFileEntryTypeLocalService)
Method Detail

addDLFileEntryType

public DLFileEntryType addDLFileEntryType(DLFileEntryType dlFileEntryType)
                                   throws SystemException
Adds the document library file entry type to the database. Also notifies the appropriate model listeners.

Specified by:
addDLFileEntryType in interface DLFileEntryTypeLocalService
Parameters:
dlFileEntryType - the document library file entry type
Returns:
the document library file entry type that was added
Throws:
SystemException - if a system exception occurred

createDLFileEntryType

public DLFileEntryType createDLFileEntryType(long fileEntryTypeId)
Creates a new document library file entry type with the primary key. Does not add the document library file entry type to the database.

Specified by:
createDLFileEntryType in interface DLFileEntryTypeLocalService
Parameters:
fileEntryTypeId - the primary key for the new document library file entry type
Returns:
the new document library file entry type

deleteDLFileEntryType

public void deleteDLFileEntryType(long fileEntryTypeId)
                           throws PortalException,
                                  SystemException
Deletes the document library file entry type with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteDLFileEntryType in interface DLFileEntryTypeLocalService
Parameters:
fileEntryTypeId - the primary key of the document library file entry type
Throws:
PortalException - if a document library file entry type with the primary key could not be found
SystemException - if a system exception occurred

deleteDLFileEntryType

public void deleteDLFileEntryType(DLFileEntryType dlFileEntryType)
                           throws SystemException
Deletes the document library file entry type from the database. Also notifies the appropriate model listeners.

Specified by:
deleteDLFileEntryType in interface DLFileEntryTypeLocalService
Parameters:
dlFileEntryType - the document library file entry type
Throws:
SystemException - if a system exception occurred

dynamicQuery

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

Specified by:
dynamicQuery in interface DLFileEntryTypeLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

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

Specified by:
dynamicQuery in interface DLFileEntryTypeLocalService
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 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.

Specified by:
dynamicQuery in interface DLFileEntryTypeLocalService
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 long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Returns the number of rows that match the dynamic query.

Specified by:
dynamicQueryCount in interface DLFileEntryTypeLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

getDLFileEntryType

public DLFileEntryType getDLFileEntryType(long fileEntryTypeId)
                                   throws PortalException,
                                          SystemException
Returns the document library file entry type with the primary key.

Specified by:
getDLFileEntryType in interface DLFileEntryTypeLocalService
Parameters:
fileEntryTypeId - the primary key of the document library file entry type
Returns:
the document library file entry type
Throws:
PortalException - if a document library file entry type with the primary key could not be found
SystemException - if a system exception occurred

getPersistedModel

public PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException,
                                        SystemException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Specified by:
getPersistedModel in interface DLFileEntryTypeLocalService
Throws:
PortalException
SystemException

getDLFileEntryTypes

public List<DLFileEntryType> getDLFileEntryTypes(int start,
                                                 int end)
                                          throws SystemException
Returns a range of all the document library file entry types.

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.

Specified by:
getDLFileEntryTypes in interface DLFileEntryTypeLocalService
Parameters:
start - the lower bound of the range of document library file entry types
end - the upper bound of the range of document library file entry types (not inclusive)
Returns:
the range of document library file entry types
Throws:
SystemException - if a system exception occurred

getDLFileEntryTypesCount

public int getDLFileEntryTypesCount()
                             throws SystemException
Returns the number of document library file entry types.

Specified by:
getDLFileEntryTypesCount in interface DLFileEntryTypeLocalService
Returns:
the number of document library file entry types
Throws:
SystemException - if a system exception occurred

updateDLFileEntryType

public DLFileEntryType updateDLFileEntryType(DLFileEntryType dlFileEntryType)
                                      throws SystemException
Updates the document library file entry type in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateDLFileEntryType in interface DLFileEntryTypeLocalService
Parameters:
dlFileEntryType - the document library file entry type
Returns:
the document library file entry type that was updated
Throws:
SystemException - if a system exception occurred

updateDLFileEntryType

public DLFileEntryType updateDLFileEntryType(DLFileEntryType dlFileEntryType,
                                             boolean merge)
                                      throws SystemException
Updates the document library file entry type in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateDLFileEntryType in interface DLFileEntryTypeLocalService
Parameters:
dlFileEntryType - the document library file entry type
merge - whether to merge the document library file entry type 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 document library file entry type that was updated
Throws:
SystemException - if a system exception occurred

getBeanIdentifier

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

Specified by:
getBeanIdentifier in interface DLFileEntryTypeLocalService
Returns:
the Spring bean ID for this bean

setBeanIdentifier

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

Specified by:
setBeanIdentifier in interface DLFileEntryTypeLocalService
Parameters:
beanIdentifier - the Spring bean ID for this bean

addFileEntryType

public DLFileEntryType addFileEntryType(long userId,
                                        long groupId,
                                        String name,
                                        String description,
                                        long[] ddmStructureIds,
                                        ServiceContext serviceContext)
                                 throws PortalException,
                                        SystemException
Specified by:
addFileEntryType in interface DLFileEntryTypeLocalService
Throws:
PortalException
SystemException

cascadeFileEntryTypes

public void cascadeFileEntryTypes(long userId,
                                  DLFolder dlFolder)
                           throws PortalException,
                                  SystemException
Specified by:
cascadeFileEntryTypes in interface DLFileEntryTypeLocalService
Throws:
PortalException
SystemException

deleteFileEntryType

public void deleteFileEntryType(long fileEntryTypeId)
                         throws PortalException,
                                SystemException
Specified by:
deleteFileEntryType in interface DLFileEntryTypeLocalService
Throws:
PortalException
SystemException

deleteFileEntryTypes

public void deleteFileEntryTypes(long folderId)
                          throws SystemException
Specified by:
deleteFileEntryTypes in interface DLFileEntryTypeLocalService
Throws:
SystemException

getDefaultFileEntryType

public long getDefaultFileEntryType(long folderId)
                             throws PortalException,
                                    SystemException
Specified by:
getDefaultFileEntryType in interface DLFileEntryTypeLocalService
Throws:
PortalException
SystemException

getFileEntryType

public DLFileEntryType getFileEntryType(long fileEntryTypeId)
                                 throws PortalException,
                                        SystemException
Specified by:
getFileEntryType in interface DLFileEntryTypeLocalService
Throws:
PortalException
SystemException

getFileEntryType

public DLFileEntryType getFileEntryType(long groupId,
                                        String name)
                                 throws PortalException,
                                        SystemException
Specified by:
getFileEntryType in interface DLFileEntryTypeLocalService
Throws:
PortalException
SystemException

getFileEntryTypes

public List<DLFileEntryType> getFileEntryTypes(long groupId,
                                               int start,
                                               int end)
                                        throws SystemException
Specified by:
getFileEntryTypes in interface DLFileEntryTypeLocalService
Throws:
SystemException

getFileEntryTypes

public List<DLFileEntryType> getFileEntryTypes(long[] groupIds)
                                        throws SystemException
Specified by:
getFileEntryTypes in interface DLFileEntryTypeLocalService
Throws:
SystemException

getFolderFileEntryTypes

public List<DLFileEntryType> getFolderFileEntryTypes(long[] groupIds,
                                                     long folderId,
                                                     boolean inherited)
                                              throws PortalException,
                                                     SystemException
Specified by:
getFolderFileEntryTypes in interface DLFileEntryTypeLocalService
Throws:
PortalException
SystemException

search

public List<DLFileEntryType> search(long companyId,
                                    long[] groupIds,
                                    String keywords,
                                    int start,
                                    int end,
                                    OrderByComparator orderByComparator)
                             throws SystemException
Specified by:
search in interface DLFileEntryTypeLocalService
Throws:
SystemException

searchCount

public int searchCount(long companyId,
                       long[] groupIds,
                       String keywords)
                throws SystemException
Specified by:
searchCount in interface DLFileEntryTypeLocalService
Throws:
SystemException

updateFileEntryType

public void updateFileEntryType(long userId,
                                long fileEntryTypeId,
                                String name,
                                String description,
                                long[] ddmStructureIds,
                                ServiceContext serviceContext)
                         throws PortalException,
                                SystemException
Specified by:
updateFileEntryType in interface DLFileEntryTypeLocalService
Throws:
PortalException
SystemException

updateFolderFileEntryTypes

public void updateFolderFileEntryTypes(DLFolder dlFolder,
                                       List<Long> fileEntryTypeIds,
                                       long defaultFileEntryTypeId,
                                       ServiceContext serviceContext)
                                throws SystemException
Specified by:
updateFolderFileEntryTypes in interface DLFileEntryTypeLocalService
Throws:
SystemException

getWrappedDLFileEntryTypeLocalService

public DLFileEntryTypeLocalService getWrappedDLFileEntryTypeLocalService()

setWrappedDLFileEntryTypeLocalService

public void setWrappedDLFileEntryTypeLocalService(DLFileEntryTypeLocalService dlFileEntryTypeLocalService)

Liferay 6.1.0