Class AssetVocabularyLocalServiceImpl

Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portlet.asset.service.base.AssetVocabularyLocalServiceBaseImpl
com.liferay.portlet.asset.service.impl.AssetVocabularyLocalServiceImpl
All Implemented Interfaces:
com.liferay.asset.kernel.service.AssetVocabularyLocalService, com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.asset.kernel.model.AssetVocabulary>, com.liferay.portal.kernel.service.PersistedModelLocalService

public class AssetVocabularyLocalServiceImpl extends AssetVocabularyLocalServiceBaseImpl
Provides the local service for accessing, adding, deleting, and updating asset vocabularies.
Author:
Alvaro del Castillo, Eduardo Lundgren, Jorge Ferrer, Juan Fernández
  • Constructor Details

    • AssetVocabularyLocalServiceImpl

      public AssetVocabularyLocalServiceImpl()
  • Method Details

    • addDefaultVocabulary

      public com.liferay.asset.kernel.model.AssetVocabulary addDefaultVocabulary(long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addVocabulary

      public com.liferay.asset.kernel.model.AssetVocabulary addVocabulary(long userId, long groupId, String title, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, String settings, int visibilityType, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addVocabulary

      public com.liferay.asset.kernel.model.AssetVocabulary addVocabulary(long userId, long groupId, String title, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, String settings, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addVocabulary

      public com.liferay.asset.kernel.model.AssetVocabulary addVocabulary(long userId, long groupId, String title, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addVocabulary

      public com.liferay.asset.kernel.model.AssetVocabulary addVocabulary(long userId, long groupId, String name, String title, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, String settings, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addVocabulary

      @Indexable(type=REINDEX) public com.liferay.asset.kernel.model.AssetVocabulary addVocabulary(String externalReferenceCode, long userId, long groupId, String name, String title, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, String settings, int visibilityType, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addVocabularyResources

      public void addVocabularyResources(com.liferay.asset.kernel.model.AssetVocabulary vocabulary, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addVocabularyResources

      public void addVocabularyResources(com.liferay.asset.kernel.model.AssetVocabulary vocabulary, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteVocabularies

      public void deleteVocabularies(long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteVocabulary

      @Indexable(type=DELETE) @SystemEvent(action=1, type=1) public com.liferay.asset.kernel.model.AssetVocabulary deleteVocabulary(com.liferay.asset.kernel.model.AssetVocabulary vocabulary) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteVocabulary

      public void deleteVocabulary(long vocabularyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchGroupVocabulary

      public com.liferay.asset.kernel.model.AssetVocabulary fetchGroupVocabulary(long groupId, String name)
    • getCompanyVocabularies

      public List<com.liferay.asset.kernel.model.AssetVocabulary> getCompanyVocabularies(long companyId)
    • getGroupsVocabularies

      public List<com.liferay.asset.kernel.model.AssetVocabulary> getGroupsVocabularies(long[] groupIds)
    • getGroupsVocabularies

      public List<com.liferay.asset.kernel.model.AssetVocabulary> getGroupsVocabularies(long[] groupIds, String className)
    • getGroupsVocabularies

      public List<com.liferay.asset.kernel.model.AssetVocabulary> getGroupsVocabularies(long[] groupIds, String className, long classTypePK)
    • getGroupVocabularies

      public List<com.liferay.asset.kernel.model.AssetVocabulary> getGroupVocabularies(long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getGroupVocabularies

      public List<com.liferay.asset.kernel.model.AssetVocabulary> getGroupVocabularies(long groupId, boolean addDefaultVocabulary) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getGroupVocabularies

      public List<com.liferay.asset.kernel.model.AssetVocabulary> getGroupVocabularies(long groupId, int visibilityType)
    • getGroupVocabularies

      public List<com.liferay.asset.kernel.model.AssetVocabulary> getGroupVocabularies(long[] groupIds)
    • getGroupVocabularies

      public List<com.liferay.asset.kernel.model.AssetVocabulary> getGroupVocabularies(long[] groupIds, int[] visibilityTypes)
    • getGroupVocabulariesCount

      public int getGroupVocabulariesCount(long[] groupIds)
    • getGroupVocabulary

      public com.liferay.asset.kernel.model.AssetVocabulary getGroupVocabulary(long groupId, String name) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getVocabularies

      public List<com.liferay.asset.kernel.model.AssetVocabulary> getVocabularies(com.liferay.portal.kernel.search.Hits hits) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getVocabularies

      public List<com.liferay.asset.kernel.model.AssetVocabulary> getVocabularies(long[] vocabularyIds) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getVocabulary

      public com.liferay.asset.kernel.model.AssetVocabulary getVocabulary(long vocabularyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • searchVocabularies

      public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetVocabulary> searchVocabularies(long companyId, long[] groupIds, String title, int[] visibilityTypes, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateVocabulary

      public com.liferay.asset.kernel.model.AssetVocabulary updateVocabulary(long vocabularyId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, String settings) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateVocabulary

      @Indexable(type=REINDEX) public com.liferay.asset.kernel.model.AssetVocabulary updateVocabulary(long vocabularyId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, String settings, int visibilityType) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateVocabulary

      @Indexable(type=REINDEX) public com.liferay.asset.kernel.model.AssetVocabulary updateVocabulary(long vocabularyId, String title, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, String settings, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • buildSearchContext

      protected com.liferay.portal.kernel.search.SearchContext buildSearchContext(long companyId, long[] groupIds, String title, int[] visibilityTypes, int start, int end, com.liferay.portal.kernel.search.Sort sort)
    • hasVocabulary

      protected boolean hasVocabulary(long groupId, String name)
    • searchVocabularies

      protected com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetVocabulary> searchVocabularies(com.liferay.portal.kernel.search.SearchContext searchContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • validate

      protected void validate(long groupId, String name) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException