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
Provides the local service for accessing, adding, deleting, and updating
asset vocabularies.
- Author:
- Alvaro del Castillo, Eduardo Lundgren, Jorge Ferrer, Juan Fernández
-
Field Summary
Fields inherited from class com.liferay.portlet.asset.service.base.AssetVocabularyLocalServiceBaseImpl
assetVocabularyLocalService, assetVocabularyPersistence, counterLocalService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.liferay.asset.kernel.model.AssetVocabularyaddDefaultVocabulary(long groupId) com.liferay.asset.kernel.model.AssetVocabularyaddVocabulary(long userId, long groupId, String title, com.liferay.portal.kernel.service.ServiceContext serviceContext) com.liferay.asset.kernel.model.AssetVocabularyaddVocabulary(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) com.liferay.asset.kernel.model.AssetVocabularyaddVocabulary(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) com.liferay.asset.kernel.model.AssetVocabularyaddVocabulary(long userId, long groupId, String title, Map<Locale, String> titleMap, Map<Locale, String> descriptionMap, String settings, com.liferay.portal.kernel.service.ServiceContext serviceContext) com.liferay.asset.kernel.model.AssetVocabularyaddVocabulary(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) voidaddVocabularyResources(com.liferay.asset.kernel.model.AssetVocabulary vocabulary, boolean addGroupPermissions, boolean addGuestPermissions) voidaddVocabularyResources(com.liferay.asset.kernel.model.AssetVocabulary vocabulary, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) protected com.liferay.portal.kernel.search.SearchContextbuildSearchContext(long companyId, long[] groupIds, String title, int[] visibilityTypes, int start, int end, com.liferay.portal.kernel.search.Sort sort) voiddeleteVocabularies(long groupId) voiddeleteVocabulary(long vocabularyId) com.liferay.asset.kernel.model.AssetVocabularydeleteVocabulary(com.liferay.asset.kernel.model.AssetVocabulary vocabulary) com.liferay.asset.kernel.model.AssetVocabularyfetchGroupVocabulary(long groupId, String name) List<com.liferay.asset.kernel.model.AssetVocabulary>getCompanyVocabularies(long companyId) List<com.liferay.asset.kernel.model.AssetVocabulary>getGroupsVocabularies(long[] groupIds) List<com.liferay.asset.kernel.model.AssetVocabulary>getGroupsVocabularies(long[] groupIds, String className) List<com.liferay.asset.kernel.model.AssetVocabulary>getGroupsVocabularies(long[] groupIds, String className, long classTypePK) List<com.liferay.asset.kernel.model.AssetVocabulary>getGroupVocabularies(long groupId) List<com.liferay.asset.kernel.model.AssetVocabulary>getGroupVocabularies(long[] groupIds) List<com.liferay.asset.kernel.model.AssetVocabulary>getGroupVocabularies(long[] groupIds, int[] visibilityTypes) List<com.liferay.asset.kernel.model.AssetVocabulary>getGroupVocabularies(long groupId, boolean addDefaultVocabulary) List<com.liferay.asset.kernel.model.AssetVocabulary>getGroupVocabularies(long groupId, int visibilityType) intgetGroupVocabulariesCount(long[] groupIds) com.liferay.asset.kernel.model.AssetVocabularygetGroupVocabulary(long groupId, String name) List<com.liferay.asset.kernel.model.AssetVocabulary>getVocabularies(long[] vocabularyIds) List<com.liferay.asset.kernel.model.AssetVocabulary>getVocabularies(com.liferay.portal.kernel.search.Hits hits) com.liferay.asset.kernel.model.AssetVocabularygetVocabulary(long vocabularyId) protected booleanhasVocabulary(long groupId, String name) 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) protected com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetVocabulary>searchVocabularies(com.liferay.portal.kernel.search.SearchContext searchContext) com.liferay.asset.kernel.model.AssetVocabularyupdateVocabulary(long vocabularyId, String title, Map<Locale, String> titleMap, Map<Locale, String> descriptionMap, String settings, com.liferay.portal.kernel.service.ServiceContext serviceContext) com.liferay.asset.kernel.model.AssetVocabularyupdateVocabulary(long vocabularyId, Map<Locale, String> titleMap, Map<Locale, String> descriptionMap, String settings) com.liferay.asset.kernel.model.AssetVocabularyupdateVocabulary(long vocabularyId, Map<Locale, String> titleMap, Map<Locale, String> descriptionMap, String settings, int visibilityType) protected voidMethods inherited from class com.liferay.portlet.asset.service.base.AssetVocabularyLocalServiceBaseImpl
addAssetVocabulary, afterPropertiesSet, createAssetVocabulary, createPersistedModel, deleteAssetVocabulary, deleteAssetVocabulary, deletePersistedModel, destroy, dslQuery, dslQueryCount, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchAssetVocabulary, fetchAssetVocabularyByExternalReferenceCode, fetchAssetVocabularyByUuidAndGroupId, getActionableDynamicQuery, getAssetVocabularies, getAssetVocabulariesByUuidAndCompanyId, getAssetVocabulariesByUuidAndCompanyId, getAssetVocabulariesCount, getAssetVocabulary, getAssetVocabularyByExternalReferenceCode, getAssetVocabularyByUuidAndGroupId, getAssetVocabularyLocalService, getAssetVocabularyPersistence, getBasePersistence, getCounterLocalService, getCTPersistence, getExportActionableDynamicQuery, getIndexableActionableDynamicQuery, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, initActionableDynamicQuery, runSQL, setAssetVocabularyLocalService, setAssetVocabularyPersistence, setCounterLocalService, updateAssetVocabulary, updateWithUnsafeFunctionMethods inherited from class com.liferay.portal.kernel.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
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, throws com.liferay.portal.kernel.exception.PortalExceptionString> descriptionMap, String settings, int visibilityType, com.liferay.portal.kernel.service.ServiceContext serviceContext) - 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, throws com.liferay.portal.kernel.exception.PortalExceptionString> descriptionMap, String settings, com.liferay.portal.kernel.service.ServiceContext serviceContext) - 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, throws com.liferay.portal.kernel.exception.PortalExceptionString> descriptionMap, String settings, com.liferay.portal.kernel.service.ServiceContext serviceContext) - 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, throws com.liferay.portal.kernel.exception.PortalExceptionString> descriptionMap, String settings, int visibilityType, com.liferay.portal.kernel.service.ServiceContext serviceContext) - 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
-
getGroupsVocabularies
-
getGroupsVocabularies
-
getGroupsVocabularies
-
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
-
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, throws com.liferay.portal.kernel.exception.PortalExceptionString> descriptionMap, String settings) - 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, throws com.liferay.portal.kernel.exception.PortalExceptionString> descriptionMap, String settings, int visibilityType) - 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, throws com.liferay.portal.kernel.exception.PortalExceptionString> descriptionMap, String settings, com.liferay.portal.kernel.service.ServiceContext serviceContext) - 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
-
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
-