com.liferay.portlet.asset.service.impl
Class AssetVocabularyLocalServiceImpl
java.lang.Object
com.liferay.portal.service.BaseLocalServiceImpl
com.liferay.portlet.asset.service.base.AssetVocabularyLocalServiceBaseImpl
com.liferay.portlet.asset.service.impl.AssetVocabularyLocalServiceImpl
- All Implemented Interfaces:
- IdentifiableOSGiService, BaseLocalService, PersistedModelLocalService, AssetVocabularyLocalService
public class AssetVocabularyLocalServiceImpl
- extends AssetVocabularyLocalServiceBaseImpl
Provides the local service for accessing, adding, deleting, and updating
asset vocabularies.
| Fields inherited from class com.liferay.portlet.asset.service.base.AssetVocabularyLocalServiceBaseImpl |
assetCategoryFinder, assetCategoryLocalService, assetCategoryPersistence, assetVocabularyFinder, assetVocabularyLocalService, assetVocabularyPersistence, classNameLocalService, classNamePersistence, counterLocalService, groupFinder, groupLocalService, groupPersistence, persistedModelLocalServiceRegistry, resourceLocalService, userFinder, userLocalService, userPersistence |
|
Method Summary |
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)
|
protected SearchContext |
buildSearchContext(long companyId,
long groupId,
String title,
int start,
int end,
Sort sort)
|
void |
deleteVocabularies(long groupId)
|
AssetVocabulary |
deleteVocabulary(AssetVocabulary vocabulary)
|
void |
deleteVocabulary(long vocabularyId)
|
List<AssetVocabulary> |
getCompanyVocabularies(long companyId)
|
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)
|
List<AssetVocabulary> |
getVocabularies(Hits hits)
|
List<AssetVocabulary> |
getVocabularies(long[] vocabularyIds)
|
AssetVocabulary |
getVocabulary(long vocabularyId)
|
protected boolean |
hasVocabulary(long groupId,
String name)
|
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)
|
protected BaseModelSearchResult<AssetVocabulary> |
searchVocabularies(SearchContext searchContext)
|
AssetVocabulary |
updateVocabulary(long vocabularyId,
String title,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
String settings,
ServiceContext serviceContext)
|
protected void |
validate(long groupId,
String name)
|
| Methods inherited from class com.liferay.portlet.asset.service.base.AssetVocabularyLocalServiceBaseImpl |
addAssetVocabulary, afterPropertiesSet, createAssetVocabulary, deleteAssetVocabulary, deleteAssetVocabulary, deletePersistedModel, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchAssetVocabulary, fetchAssetVocabularyByUuidAndGroupId, getActionableDynamicQuery, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetVocabularies, getAssetVocabulariesByUuidAndCompanyId, getAssetVocabulariesByUuidAndCompanyId, getAssetVocabulariesCount, getAssetVocabulary, getAssetVocabularyByUuidAndGroupId, getAssetVocabularyFinder, getAssetVocabularyLocalService, getAssetVocabularyPersistence, getClassNameLocalService, getClassNamePersistence, getCounterLocalService, getExportActionableDynamicQuery, getGroupFinder, getGroupLocalService, getGroupPersistence, getIndexableActionableDynamicQuery, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, getResourceLocalService, getUserFinder, getUserLocalService, getUserPersistence, initActionableDynamicQuery, runSQL, setAssetCategoryFinder, setAssetCategoryLocalService, setAssetCategoryPersistence, setAssetVocabularyFinder, setAssetVocabularyLocalService, setAssetVocabularyPersistence, setClassNameLocalService, setClassNamePersistence, setCounterLocalService, setGroupFinder, setGroupLocalService, setGroupPersistence, setResourceLocalService, setUserFinder, setUserLocalService, setUserPersistence, updateAssetVocabulary |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssetVocabularyLocalServiceImpl
public AssetVocabularyLocalServiceImpl()
addDefaultVocabulary
public AssetVocabulary addDefaultVocabulary(long groupId)
throws PortalException
- Throws:
PortalException
addVocabulary
@Indexable(type=REINDEX)
public AssetVocabulary addVocabulary(long userId,
long groupId,
String title,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
String settings,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
addVocabulary
public AssetVocabulary addVocabulary(long userId,
long groupId,
String title,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
addVocabularyResources
public void addVocabularyResources(AssetVocabulary vocabulary,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException
- Throws:
PortalException
addVocabularyResources
public void addVocabularyResources(AssetVocabulary vocabulary,
ModelPermissions modelPermissions)
throws PortalException
- Throws:
PortalException
deleteVocabularies
public void deleteVocabularies(long groupId)
throws PortalException
- Throws:
PortalException
deleteVocabulary
@Indexable(type=DELETE)
@SystemEvent(action=1,
type=1)
public AssetVocabulary deleteVocabulary(AssetVocabulary vocabulary)
throws PortalException
- Throws:
PortalException
deleteVocabulary
public void deleteVocabulary(long vocabularyId)
throws PortalException
- Throws:
PortalException
getCompanyVocabularies
public List<AssetVocabulary> getCompanyVocabularies(long companyId)
getGroupsVocabularies
public List<AssetVocabulary> getGroupsVocabularies(long[] groupIds)
getGroupsVocabularies
public List<AssetVocabulary> getGroupsVocabularies(long[] groupIds,
String className)
getGroupsVocabularies
public List<AssetVocabulary> getGroupsVocabularies(long[] groupIds,
String className,
long classTypePK)
getGroupVocabularies
public List<AssetVocabulary> getGroupVocabularies(long groupId)
throws PortalException
- Throws:
PortalException
getGroupVocabularies
public List<AssetVocabulary> getGroupVocabularies(long groupId,
boolean addDefaultVocabulary)
throws PortalException
- Throws:
PortalException
getGroupVocabularies
public List<AssetVocabulary> getGroupVocabularies(long groupId,
String name,
int start,
int end,
OrderByComparator<AssetVocabulary> obc)
getGroupVocabularies
public List<AssetVocabulary> getGroupVocabularies(long[] groupIds)
getGroupVocabulariesCount
public int getGroupVocabulariesCount(long[] groupIds)
getGroupVocabulary
public AssetVocabulary getGroupVocabulary(long groupId,
String name)
throws PortalException
- Throws:
PortalException
getVocabularies
public List<AssetVocabulary> getVocabularies(Hits hits)
throws PortalException
- Throws:
PortalException
getVocabularies
public List<AssetVocabulary> getVocabularies(long[] vocabularyIds)
throws PortalException
- Throws:
PortalException
getVocabulary
public AssetVocabulary getVocabulary(long vocabularyId)
throws PortalException
- Throws:
PortalException
searchVocabularies
public BaseModelSearchResult<AssetVocabulary> searchVocabularies(long companyId,
long groupId,
String title,
int start,
int end)
throws PortalException
- Throws:
PortalException
searchVocabularies
public BaseModelSearchResult<AssetVocabulary> searchVocabularies(long companyId,
long groupId,
String title,
int start,
int end,
Sort sort)
throws PortalException
- Throws:
PortalException
updateVocabulary
@Indexable(type=REINDEX)
public AssetVocabulary updateVocabulary(long vocabularyId,
String title,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
String settings,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
buildSearchContext
protected SearchContext buildSearchContext(long companyId,
long groupId,
String title,
int start,
int end,
Sort sort)
hasVocabulary
protected boolean hasVocabulary(long groupId,
String name)
searchVocabularies
protected BaseModelSearchResult<AssetVocabulary> searchVocabularies(SearchContext searchContext)
throws PortalException
- Throws:
PortalException
validate
protected void validate(long groupId,
String name)
throws PortalException
- Throws:
PortalException