Liferay 7.0-ce-b4

com.liferay.portlet.asset.service
Class AssetVocabularyLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portlet.asset.service.AssetVocabularyLocalServiceWrapper
All Implemented Interfaces:
BaseLocalService, PersistedModelLocalService, ServiceWrapper<AssetVocabularyLocalService>, AssetVocabularyLocalService

@ProviderType
public class AssetVocabularyLocalServiceWrapper
extends Object
implements AssetVocabularyLocalService, ServiceWrapper<AssetVocabularyLocalService>

Provides a wrapper for AssetVocabularyLocalService.

See Also:
AssetVocabularyLocalService
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
AssetVocabularyLocalServiceWrapper(AssetVocabularyLocalService assetVocabularyLocalService)
           
 
Method Summary
 AssetVocabulary addAssetVocabulary(AssetVocabulary assetVocabulary)
          Adds the asset vocabulary to the database.
 AssetVocabulary addDefaultVocabulary(long groupId)
           
 AssetVocabulary addVocabulary(long userId, long groupId, String title, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, String settings, ServiceContext serviceContext)
           
 AssetVocabulary addVocabulary(long userId, long groupId, String title, ServiceContext serviceContext)
           
 void addVocabularyResources(AssetVocabulary vocabulary, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addVocabularyResources(AssetVocabulary vocabulary, ModelPermissions modelPermissions)
           
 AssetVocabulary createAssetVocabulary(long vocabularyId)
          Creates a new asset vocabulary with the primary key.
 AssetVocabulary deleteAssetVocabulary(AssetVocabulary assetVocabulary)
          Deletes the asset vocabulary from the database.
 AssetVocabulary deleteAssetVocabulary(long vocabularyId)
          Deletes the asset vocabulary with the primary key from the database.
 PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
 void deleteVocabularies(long groupId)
           
 AssetVocabulary deleteVocabulary(AssetVocabulary vocabulary)
           
 void deleteVocabulary(long vocabularyId)
           
 DynamicQuery dynamicQuery()
           
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> 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 matching the dynamic query.
 long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows matching the dynamic query.
 AssetVocabulary fetchAssetVocabulary(long vocabularyId)
           
 AssetVocabulary fetchAssetVocabularyByUuidAndGroupId(String uuid, long groupId)
          Returns the asset vocabulary matching the UUID and group.
 ActionableDynamicQuery getActionableDynamicQuery()
           
 List<AssetVocabulary> getAssetVocabularies(int start, int end)
          Returns a range of all the asset vocabularies.
 List<AssetVocabulary> getAssetVocabulariesByUuidAndCompanyId(String uuid, long companyId)
          Returns all the asset vocabularies matching the UUID and company.
 List<AssetVocabulary> getAssetVocabulariesByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<AssetVocabulary> orderByComparator)
          Returns a range of asset vocabularies matching the UUID and company.
 int getAssetVocabulariesCount()
          Returns the number of asset vocabularies.
 AssetVocabulary getAssetVocabulary(long vocabularyId)
          Returns the asset vocabulary with the primary key.
 AssetVocabulary getAssetVocabularyByUuidAndGroupId(String uuid, long groupId)
          Returns the asset vocabulary matching the UUID and group.
 List<AssetVocabulary> getCompanyVocabularies(long companyId)
           
 ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
           
 List<AssetVocabulary> getGroupsVocabularies(long[] groupIds)
           
 List<AssetVocabulary> getGroupsVocabularies(long[] groupIds, String className)
           
 List<AssetVocabulary> getGroupsVocabularies(long[] groupIds, String className, long classTypePK)
           
 List<AssetVocabulary> getGroupVocabularies(long groupId)
           
 List<AssetVocabulary> getGroupVocabularies(long[] groupIds)
           
 List<AssetVocabulary> getGroupVocabularies(long groupId, boolean addDefaultVocabulary)
           
 List<AssetVocabulary> getGroupVocabularies(long groupId, String name, int start, int end, OrderByComparator<AssetVocabulary> obc)
           
 int getGroupVocabulariesCount(long[] groupIds)
           
 AssetVocabulary getGroupVocabulary(long groupId, String name)
           
 IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
           
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 List<AssetVocabulary> getVocabularies(Hits hits)
           
 List<AssetVocabulary> getVocabularies(long[] vocabularyIds)
           
 AssetVocabulary getVocabulary(long vocabularyId)
           
 AssetVocabularyLocalService getWrappedService()
           
 BaseModelSearchResult<AssetVocabulary> searchVocabularies(long companyId, long groupId, String title, int start, int end)
           
 BaseModelSearchResult<AssetVocabulary> searchVocabularies(long companyId, long groupId, String title, int start, int end, Sort sort)
           
 void setWrappedService(AssetVocabularyLocalService assetVocabularyLocalService)
           
 AssetVocabulary updateAssetVocabulary(AssetVocabulary assetVocabulary)
          Updates the asset vocabulary in the database or adds it if it does not yet exist.
 AssetVocabulary updateVocabulary(long vocabularyId, String title, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, String settings, ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetVocabularyLocalServiceWrapper

public AssetVocabularyLocalServiceWrapper(AssetVocabularyLocalService assetVocabularyLocalService)
Method Detail

addAssetVocabulary

public AssetVocabulary addAssetVocabulary(AssetVocabulary assetVocabulary)
Adds the asset vocabulary to the database. Also notifies the appropriate model listeners.

Specified by:
addAssetVocabulary in interface AssetVocabularyLocalService
Parameters:
assetVocabulary - the asset vocabulary
Returns:
the asset vocabulary that was added

addDefaultVocabulary

public AssetVocabulary addDefaultVocabulary(long groupId)
                                     throws PortalException
Specified by:
addDefaultVocabulary in interface AssetVocabularyLocalService
Throws:
PortalException

addVocabulary

public AssetVocabulary addVocabulary(long userId,
                                     long groupId,
                                     String title,
                                     ServiceContext serviceContext)
                              throws PortalException
Specified by:
addVocabulary in interface AssetVocabularyLocalService
Throws:
PortalException

addVocabulary

public AssetVocabulary addVocabulary(long userId,
                                     long groupId,
                                     String title,
                                     Map<Locale,String> titleMap,
                                     Map<Locale,String> descriptionMap,
                                     String settings,
                                     ServiceContext serviceContext)
                              throws PortalException
Specified by:
addVocabulary in interface AssetVocabularyLocalService
Throws:
PortalException

addVocabularyResources

public void addVocabularyResources(AssetVocabulary vocabulary,
                                   boolean addGroupPermissions,
                                   boolean addGuestPermissions)
                            throws PortalException
Specified by:
addVocabularyResources in interface AssetVocabularyLocalService
Throws:
PortalException

addVocabularyResources

public void addVocabularyResources(AssetVocabulary vocabulary,
                                   ModelPermissions modelPermissions)
                            throws PortalException
Specified by:
addVocabularyResources in interface AssetVocabularyLocalService
Throws:
PortalException

createAssetVocabulary

public AssetVocabulary createAssetVocabulary(long vocabularyId)
Creates a new asset vocabulary with the primary key. Does not add the asset vocabulary to the database.

Specified by:
createAssetVocabulary in interface AssetVocabularyLocalService
Parameters:
vocabularyId - the primary key for the new asset vocabulary
Returns:
the new asset vocabulary

deleteAssetVocabulary

public AssetVocabulary deleteAssetVocabulary(AssetVocabulary assetVocabulary)
Deletes the asset vocabulary from the database. Also notifies the appropriate model listeners.

Specified by:
deleteAssetVocabulary in interface AssetVocabularyLocalService
Parameters:
assetVocabulary - the asset vocabulary
Returns:
the asset vocabulary that was removed

deleteAssetVocabulary

public AssetVocabulary deleteAssetVocabulary(long vocabularyId)
                                      throws PortalException
Deletes the asset vocabulary with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteAssetVocabulary in interface AssetVocabularyLocalService
Parameters:
vocabularyId - the primary key of the asset vocabulary
Returns:
the asset vocabulary that was removed
Throws:
PortalException - if a asset vocabulary with the primary key could not be found

deletePersistedModel

public PersistedModel deletePersistedModel(PersistedModel persistedModel)
                                    throws PortalException
Specified by:
deletePersistedModel in interface PersistedModelLocalService
Specified by:
deletePersistedModel in interface AssetVocabularyLocalService
Throws:
PortalException

deleteVocabularies

public void deleteVocabularies(long groupId)
                        throws PortalException
Specified by:
deleteVocabularies in interface AssetVocabularyLocalService
Throws:
PortalException

deleteVocabulary

public AssetVocabulary deleteVocabulary(AssetVocabulary vocabulary)
                                 throws PortalException
Specified by:
deleteVocabulary in interface AssetVocabularyLocalService
Throws:
PortalException

deleteVocabulary

public void deleteVocabulary(long vocabularyId)
                      throws PortalException
Specified by:
deleteVocabulary in interface AssetVocabularyLocalService
Throws:
PortalException

dynamicQuery

public DynamicQuery dynamicQuery()
Specified by:
dynamicQuery in interface AssetVocabularyLocalService

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface AssetVocabularyLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetVocabularyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

dynamicQuery

public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                int start,
                                int end,
                                OrderByComparator<T> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetVocabularyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface AssetVocabularyLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows matching the dynamic query

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery,
                              Projection projection)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface AssetVocabularyLocalService
Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchAssetVocabulary

public AssetVocabulary fetchAssetVocabulary(long vocabularyId)
Specified by:
fetchAssetVocabulary in interface AssetVocabularyLocalService

fetchAssetVocabularyByUuidAndGroupId

public AssetVocabulary fetchAssetVocabularyByUuidAndGroupId(String uuid,
                                                            long groupId)
Returns the asset vocabulary matching the UUID and group.

Specified by:
fetchAssetVocabularyByUuidAndGroupId in interface AssetVocabularyLocalService
Parameters:
uuid - the asset vocabulary's UUID
groupId - the primary key of the group
Returns:
the matching asset vocabulary, or null if a matching asset vocabulary could not be found

getActionableDynamicQuery

public ActionableDynamicQuery getActionableDynamicQuery()
Specified by:
getActionableDynamicQuery in interface AssetVocabularyLocalService

getAssetVocabularies

public List<AssetVocabulary> getAssetVocabularies(int start,
                                                  int end)
Returns a range of all the asset vocabularies.

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetVocabularyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Specified by:
getAssetVocabularies in interface AssetVocabularyLocalService
Parameters:
start - the lower bound of the range of asset vocabularies
end - the upper bound of the range of asset vocabularies (not inclusive)
Returns:
the range of asset vocabularies

getAssetVocabulariesByUuidAndCompanyId

public List<AssetVocabulary> getAssetVocabulariesByUuidAndCompanyId(String uuid,
                                                                    long companyId)
Returns all the asset vocabularies matching the UUID and company.

Specified by:
getAssetVocabulariesByUuidAndCompanyId in interface AssetVocabularyLocalService
Parameters:
uuid - the UUID of the asset vocabularies
companyId - the primary key of the company
Returns:
the matching asset vocabularies, or an empty list if no matches were found

getAssetVocabulariesByUuidAndCompanyId

public List<AssetVocabulary> getAssetVocabulariesByUuidAndCompanyId(String uuid,
                                                                    long companyId,
                                                                    int start,
                                                                    int end,
                                                                    OrderByComparator<AssetVocabulary> orderByComparator)
Returns a range of asset vocabularies matching the UUID and company.

Specified by:
getAssetVocabulariesByUuidAndCompanyId in interface AssetVocabularyLocalService
Parameters:
uuid - the UUID of the asset vocabularies
companyId - the primary key of the company
start - the lower bound of the range of asset vocabularies
end - the upper bound of the range of asset vocabularies (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the range of matching asset vocabularies, or an empty list if no matches were found

getAssetVocabulariesCount

public int getAssetVocabulariesCount()
Returns the number of asset vocabularies.

Specified by:
getAssetVocabulariesCount in interface AssetVocabularyLocalService
Returns:
the number of asset vocabularies

getAssetVocabulary

public AssetVocabulary getAssetVocabulary(long vocabularyId)
                                   throws PortalException
Returns the asset vocabulary with the primary key.

Specified by:
getAssetVocabulary in interface AssetVocabularyLocalService
Parameters:
vocabularyId - the primary key of the asset vocabulary
Returns:
the asset vocabulary
Throws:
PortalException - if a asset vocabulary with the primary key could not be found

getAssetVocabularyByUuidAndGroupId

public AssetVocabulary getAssetVocabularyByUuidAndGroupId(String uuid,
                                                          long groupId)
                                                   throws PortalException
Returns the asset vocabulary matching the UUID and group.

Specified by:
getAssetVocabularyByUuidAndGroupId in interface AssetVocabularyLocalService
Parameters:
uuid - the asset vocabulary's UUID
groupId - the primary key of the group
Returns:
the matching asset vocabulary
Throws:
PortalException - if a matching asset vocabulary could not be found

getCompanyVocabularies

public List<AssetVocabulary> getCompanyVocabularies(long companyId)
Specified by:
getCompanyVocabularies in interface AssetVocabularyLocalService

getExportActionableDynamicQuery

public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
Specified by:
getExportActionableDynamicQuery in interface AssetVocabularyLocalService

getGroupVocabularies

public List<AssetVocabulary> getGroupVocabularies(long groupId)
                                           throws PortalException
Specified by:
getGroupVocabularies in interface AssetVocabularyLocalService
Throws:
PortalException

getGroupVocabularies

public List<AssetVocabulary> getGroupVocabularies(long groupId,
                                                  boolean addDefaultVocabulary)
                                           throws PortalException
Specified by:
getGroupVocabularies in interface AssetVocabularyLocalService
Throws:
PortalException

getGroupVocabularies

public List<AssetVocabulary> getGroupVocabularies(long groupId,
                                                  String name,
                                                  int start,
                                                  int end,
                                                  OrderByComparator<AssetVocabulary> obc)
Specified by:
getGroupVocabularies in interface AssetVocabularyLocalService

getGroupVocabularies

public List<AssetVocabulary> getGroupVocabularies(long[] groupIds)
Specified by:
getGroupVocabularies in interface AssetVocabularyLocalService

getGroupVocabulariesCount

public int getGroupVocabulariesCount(long[] groupIds)
Specified by:
getGroupVocabulariesCount in interface AssetVocabularyLocalService

getGroupVocabulary

public AssetVocabulary getGroupVocabulary(long groupId,
                                          String name)
                                   throws PortalException
Specified by:
getGroupVocabulary in interface AssetVocabularyLocalService
Throws:
PortalException

getGroupsVocabularies

public List<AssetVocabulary> getGroupsVocabularies(long[] groupIds)
Specified by:
getGroupsVocabularies in interface AssetVocabularyLocalService

getGroupsVocabularies

public List<AssetVocabulary> getGroupsVocabularies(long[] groupIds,
                                                   String className)
Specified by:
getGroupsVocabularies in interface AssetVocabularyLocalService

getGroupsVocabularies

public List<AssetVocabulary> getGroupsVocabularies(long[] groupIds,
                                                   String className,
                                                   long classTypePK)
Specified by:
getGroupsVocabularies in interface AssetVocabularyLocalService

getIndexableActionableDynamicQuery

public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
Specified by:
getIndexableActionableDynamicQuery in interface AssetVocabularyLocalService

getOSGiServiceIdentifier

public String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Specified by:
getOSGiServiceIdentifier in interface AssetVocabularyLocalService
Returns:
the OSGi service identifier

getPersistedModel

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

getVocabularies

public List<AssetVocabulary> getVocabularies(Hits hits)
                                      throws PortalException
Specified by:
getVocabularies in interface AssetVocabularyLocalService
Throws:
PortalException

getVocabularies

public List<AssetVocabulary> getVocabularies(long[] vocabularyIds)
                                      throws PortalException
Specified by:
getVocabularies in interface AssetVocabularyLocalService
Throws:
PortalException

getVocabulary

public AssetVocabulary getVocabulary(long vocabularyId)
                              throws PortalException
Specified by:
getVocabulary in interface AssetVocabularyLocalService
Throws:
PortalException

searchVocabularies

public BaseModelSearchResult<AssetVocabulary> searchVocabularies(long companyId,
                                                                 long groupId,
                                                                 String title,
                                                                 int start,
                                                                 int end)
                                                          throws PortalException
Specified by:
searchVocabularies in interface AssetVocabularyLocalService
Throws:
PortalException

searchVocabularies

public BaseModelSearchResult<AssetVocabulary> searchVocabularies(long companyId,
                                                                 long groupId,
                                                                 String title,
                                                                 int start,
                                                                 int end,
                                                                 Sort sort)
                                                          throws PortalException
Specified by:
searchVocabularies in interface AssetVocabularyLocalService
Throws:
PortalException

updateAssetVocabulary

public AssetVocabulary updateAssetVocabulary(AssetVocabulary assetVocabulary)
Updates the asset vocabulary in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateAssetVocabulary in interface AssetVocabularyLocalService
Parameters:
assetVocabulary - the asset vocabulary
Returns:
the asset vocabulary that was updated

updateVocabulary

public AssetVocabulary updateVocabulary(long vocabularyId,
                                        String title,
                                        Map<Locale,String> titleMap,
                                        Map<Locale,String> descriptionMap,
                                        String settings,
                                        ServiceContext serviceContext)
                                 throws PortalException
Specified by:
updateVocabulary in interface AssetVocabularyLocalService
Throws:
PortalException

getWrappedService

public AssetVocabularyLocalService getWrappedService()
Specified by:
getWrappedService in interface ServiceWrapper<AssetVocabularyLocalService>

setWrappedService

public void setWrappedService(AssetVocabularyLocalService assetVocabularyLocalService)
Specified by:
setWrappedService in interface ServiceWrapper<AssetVocabularyLocalService>

Liferay 7.0-ce-b4