com.liferay.portal.service.impl
Class RepositoryLocalServiceImpl
java.lang.Object
com.liferay.portal.service.BaseLocalServiceImpl
com.liferay.portal.service.base.RepositoryLocalServiceBaseImpl
com.liferay.portal.service.impl.RepositoryLocalServiceImpl
- All Implemented Interfaces:
- IdentifiableBean, CacheRegistryItem, BaseLocalService, PersistedModelLocalService, RepositoryLocalService
public class RepositoryLocalServiceImpl
- extends RepositoryLocalServiceBaseImpl
- implements CacheRegistryItem
| Fields inherited from class com.liferay.portal.service.base.RepositoryLocalServiceBaseImpl |
assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, classNameLocalService, classNamePersistence, classNameService, companyLocalService, companyPersistence, companyService, counterLocalService, dlAppHelperLocalService, dlFileEntryFinder, dlFileEntryLocalService, dlFileEntryPersistence, dlFileEntryService, dlFileEntryTypeFinder, dlFileEntryTypeLocalService, dlFileEntryTypePersistence, dlFileEntryTypeService, dlFileVersionLocalService, dlFileVersionPersistence, dlFileVersionService, dlFolderFinder, dlFolderLocalService, dlFolderPersistence, dlFolderService, expandoValueLocalService, expandoValuePersistence, expandoValueService, groupFinder, groupLocalService, groupPersistence, groupService, persistedModelLocalServiceRegistry, repositoryEntryLocalService, repositoryEntryPersistence, repositoryLocalService, repositoryPersistence, repositoryService, resourceLocalService, systemEventLocalService, systemEventPersistence, userFinder, userLocalService, userPersistence, userService |
|
Method Summary |
Repository |
addRepository(long userId,
long groupId,
long classNameId,
long parentFolderId,
String name,
String description,
String portletId,
UnicodeProperties typeSettingsProperties,
boolean hidden,
ServiceContext serviceContext)
|
Repository |
addRepository(long userId,
long groupId,
long classNameId,
long parentFolderId,
String name,
String description,
String portletId,
UnicodeProperties typeSettingsProperties,
ServiceContext serviceContext)
Deprecated. As of 6.2.0, replaced by addRepository(long, long,
long, long, String, String, String, UnicodeProperties,
boolean, ServiceContext) |
void |
afterPropertiesSet()
|
void |
checkRepository(long repositoryId)
|
void |
deleteRepositories(long groupId)
|
Repository |
deleteRepository(long repositoryId)
Deletes the repository with the primary key from the database. |
Repository |
deleteRepository(Repository repository)
Deletes the repository from the database. |
Repository |
fetchRepository(long groupId,
String portletId)
|
Repository |
fetchRepository(long groupId,
String name,
String portletId)
|
protected long |
getDLFolderId(User user,
long groupId,
long repositoryId,
long parentFolderId,
String name,
String description,
boolean hidden,
ServiceContext serviceContext)
|
protected long |
getExternalRepositoryId(long folderId,
long fileEntryId,
long fileVersionId)
|
List<LocalRepository> |
getGroupLocalRepositoryImpl(long groupId)
|
protected long |
getInternalRepositoryId(long folderId,
long fileEntryId,
long fileVersionId)
|
LocalRepository |
getLocalRepositoryImpl(long repositoryId)
|
LocalRepository |
getLocalRepositoryImpl(long folderId,
long fileEntryId,
long fileVersionId)
|
String |
getRegistryName()
|
Repository |
getRepository(long groupId,
String portletId)
|
Repository |
getRepository(long groupId,
String name,
String portletId)
|
protected long |
getRepositoryId(long folderId,
long fileEntryId,
long fileVersionId)
|
Repository |
getRepositoryImpl(long repositoryId)
|
Repository |
getRepositoryImpl(long folderId,
long fileEntryId,
long fileVersionId)
|
UnicodeProperties |
getTypeSettingsProperties(long repositoryId)
|
void |
invalidate()
|
void |
updateRepository(long repositoryId,
String name,
String description)
|
| Methods inherited from class com.liferay.portal.service.base.RepositoryLocalServiceBaseImpl |
addRepository, createRepository, deletePersistedModel, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchRepository, fetchRepositoryByUuidAndGroupId, getActionableDynamicQuery, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getBeanIdentifier, getClassNameLocalService, getClassNamePersistence, getClassNameService, getCompanyLocalService, getCompanyPersistence, getCompanyService, getCounterLocalService, getDLAppHelperLocalService, getDLFileEntryFinder, getDLFileEntryLocalService, getDLFileEntryPersistence, getDLFileEntryService, getDLFileEntryTypeFinder, getDLFileEntryTypeLocalService, getDLFileEntryTypePersistence, getDLFileEntryTypeService, getDLFileVersionLocalService, getDLFileVersionPersistence, getDLFileVersionService, getDLFolderFinder, getDLFolderLocalService, getDLFolderPersistence, getDLFolderService, getExpandoValueLocalService, getExpandoValuePersistence, getExpandoValueService, getExportActionableDynamicQuery, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getModelClass, getModelClassName, getPersistedModel, getRepositories, getRepositoriesByUuidAndCompanyId, getRepositoriesByUuidAndCompanyId, getRepositoriesCount, getRepository, getRepositoryByUuidAndGroupId, getRepositoryEntryLocalService, getRepositoryEntryPersistence, getRepositoryLocalService, getRepositoryPersistence, getRepositoryService, getResourceLocalService, getSystemEventLocalService, getSystemEventPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, initActionableDynamicQuery, runSQL, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setBeanIdentifier, setClassNameLocalService, setClassNamePersistence, setClassNameService, setCompanyLocalService, setCompanyPersistence, setCompanyService, setCounterLocalService, setDLAppHelperLocalService, setDLFileEntryFinder, setDLFileEntryLocalService, setDLFileEntryPersistence, setDLFileEntryService, setDLFileEntryTypeFinder, setDLFileEntryTypeLocalService, setDLFileEntryTypePersistence, setDLFileEntryTypeService, setDLFileVersionLocalService, setDLFileVersionPersistence, setDLFileVersionService, setDLFolderFinder, setDLFolderLocalService, setDLFolderPersistence, setDLFolderService, setExpandoValueLocalService, setExpandoValuePersistence, setExpandoValueService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setRepositoryEntryLocalService, setRepositoryEntryPersistence, setRepositoryLocalService, setRepositoryPersistence, setRepositoryService, setResourceLocalService, setSystemEventLocalService, setSystemEventPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateRepository |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RepositoryLocalServiceImpl
public RepositoryLocalServiceImpl()
addRepository
public Repository addRepository(long userId,
long groupId,
long classNameId,
long parentFolderId,
String name,
String description,
String portletId,
UnicodeProperties typeSettingsProperties,
boolean hidden,
ServiceContext serviceContext)
throws PortalException
- Specified by:
addRepository in interface RepositoryLocalService
- Throws:
PortalException
addRepository
@Deprecated
public Repository addRepository(long userId,
long groupId,
long classNameId,
long parentFolderId,
String name,
String description,
String portletId,
UnicodeProperties typeSettingsProperties,
ServiceContext serviceContext)
throws PortalException
- Deprecated. As of 6.2.0, replaced by
addRepository(long, long,
long, long, String, String, String, UnicodeProperties,
boolean, ServiceContext)
- Specified by:
addRepository in interface RepositoryLocalService
- Throws:
PortalException
afterPropertiesSet
public void afterPropertiesSet()
- Overrides:
afterPropertiesSet in class RepositoryLocalServiceBaseImpl
checkRepository
public void checkRepository(long repositoryId)
- Specified by:
checkRepository in interface RepositoryLocalService
deleteRepositories
public void deleteRepositories(long groupId)
- Specified by:
deleteRepositories in interface RepositoryLocalService
deleteRepository
public Repository deleteRepository(long repositoryId)
- Description copied from class:
RepositoryLocalServiceBaseImpl
- Deletes the repository with the primary key from the database. Also notifies the appropriate model listeners.
- Specified by:
deleteRepository in interface RepositoryLocalService- Overrides:
deleteRepository in class RepositoryLocalServiceBaseImpl
- Parameters:
repositoryId - the primary key of the repository
- Returns:
- the repository that was removed
deleteRepository
@SystemEvent(action=1,
type=1)
public Repository deleteRepository(Repository repository)
- Description copied from class:
RepositoryLocalServiceBaseImpl
- Deletes the repository from the database. Also notifies the appropriate model listeners.
- Specified by:
deleteRepository in interface RepositoryLocalService- Overrides:
deleteRepository in class RepositoryLocalServiceBaseImpl
- Parameters:
repository - the repository
- Returns:
- the repository that was removed
fetchRepository
public Repository fetchRepository(long groupId,
String portletId)
- Specified by:
fetchRepository in interface RepositoryLocalService
fetchRepository
public Repository fetchRepository(long groupId,
String name,
String portletId)
- Specified by:
fetchRepository in interface RepositoryLocalService
getGroupLocalRepositoryImpl
public List<LocalRepository> getGroupLocalRepositoryImpl(long groupId)
throws PortalException
- Specified by:
getGroupLocalRepositoryImpl in interface RepositoryLocalService
- Throws:
PortalException
getLocalRepositoryImpl
public LocalRepository getLocalRepositoryImpl(long repositoryId)
throws PortalException
- Specified by:
getLocalRepositoryImpl in interface RepositoryLocalService
- Throws:
PortalException
getLocalRepositoryImpl
public LocalRepository getLocalRepositoryImpl(long folderId,
long fileEntryId,
long fileVersionId)
throws PortalException
- Specified by:
getLocalRepositoryImpl in interface RepositoryLocalService
- Throws:
PortalException
getRegistryName
public String getRegistryName()
- Specified by:
getRegistryName in interface CacheRegistryItem- Specified by:
getRegistryName in interface RepositoryLocalService
getRepository
public Repository getRepository(long groupId,
String portletId)
throws PortalException
- Specified by:
getRepository in interface RepositoryLocalService
- Throws:
PortalException
getRepository
public Repository getRepository(long groupId,
String name,
String portletId)
throws PortalException
- Specified by:
getRepository in interface RepositoryLocalService
- Throws:
PortalException
getRepositoryImpl
public Repository getRepositoryImpl(long repositoryId)
throws PortalException
- Specified by:
getRepositoryImpl in interface RepositoryLocalService
- Throws:
PortalException
getRepositoryImpl
public Repository getRepositoryImpl(long folderId,
long fileEntryId,
long fileVersionId)
throws PortalException
- Specified by:
getRepositoryImpl in interface RepositoryLocalService
- Throws:
PortalException
getTypeSettingsProperties
public UnicodeProperties getTypeSettingsProperties(long repositoryId)
throws PortalException
- Specified by:
getTypeSettingsProperties in interface RepositoryLocalService
- Throws:
PortalException
invalidate
public void invalidate()
- Specified by:
invalidate in interface CacheRegistryItem- Specified by:
invalidate in interface RepositoryLocalService
updateRepository
public void updateRepository(long repositoryId,
String name,
String description)
throws PortalException
- Specified by:
updateRepository in interface RepositoryLocalService
- Throws:
PortalException
getDLFolderId
protected long getDLFolderId(User user,
long groupId,
long repositoryId,
long parentFolderId,
String name,
String description,
boolean hidden,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
getExternalRepositoryId
protected long getExternalRepositoryId(long folderId,
long fileEntryId,
long fileVersionId)
getInternalRepositoryId
protected long getInternalRepositoryId(long folderId,
long fileEntryId,
long fileVersionId)
getRepositoryId
protected long getRepositoryId(long folderId,
long fileEntryId,
long fileVersionId)