Liferay 7.0-ce-b4

com.liferay.portal.service.impl
Class RepositoryLocalServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portal.service.base.RepositoryLocalServiceBaseImpl
          extended by com.liferay.portal.service.impl.RepositoryLocalServiceImpl
All Implemented Interfaces:
IdentifiableOSGiService, BaseLocalService, PersistedModelLocalService, RepositoryLocalService

public class RepositoryLocalServiceImpl
extends RepositoryLocalServiceBaseImpl


Field Summary
protected  RepositoryProvider repositoryProvider
           
 
Fields inherited from class com.liferay.portal.service.base.RepositoryLocalServiceBaseImpl
assetEntryFinder, assetEntryLocalService, assetEntryPersistence, classNameLocalService, classNamePersistence, companyLocalService, companyPersistence, counterLocalService, dlAppHelperLocalService, dlFileEntryFinder, dlFileEntryLocalService, dlFileEntryPersistence, dlFileEntryTypeFinder, dlFileEntryTypeLocalService, dlFileEntryTypePersistence, dlFileShortcutLocalService, dlFileShortcutPersistence, dlFileVersionLocalService, dlFileVersionPersistence, dlFolderFinder, dlFolderLocalService, dlFolderPersistence, expandoValueLocalService, expandoValuePersistence, groupFinder, groupLocalService, groupPersistence, persistedModelLocalServiceRegistry, repositoryEntryLocalService, repositoryEntryPersistence, repositoryLocalService, repositoryPersistence, resourceLocalService, systemEventLocalService, systemEventPersistence, userFinder, userLocalService, userPersistence
 
Constructor Summary
RepositoryLocalServiceImpl()
           
 
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 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)
           
 List<Repository> getGroupRepositories(long groupId)
           
 Repository getRepository(long groupId, String portletId)
           
 Repository getRepository(long groupId, String name, String portletId)
           
 UnicodeProperties getTypeSettingsProperties(long repositoryId)
           
 void updateRepository(long repositoryId, String name, String description)
           
 void updateRepository(long repositoryId, UnicodeProperties typeSettingsProperties)
           
 
Methods inherited from class com.liferay.portal.service.base.RepositoryLocalServiceBaseImpl
addRepository, afterPropertiesSet, createRepository, deletePersistedModel, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchRepository, fetchRepositoryByUuidAndGroupId, getActionableDynamicQuery, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getClassNameLocalService, getClassNamePersistence, getCompanyLocalService, getCompanyPersistence, getCounterLocalService, getDLAppHelperLocalService, getDLFileEntryFinder, getDLFileEntryLocalService, getDLFileEntryPersistence, getDLFileEntryTypeFinder, getDLFileEntryTypeLocalService, getDLFileEntryTypePersistence, getDLFileShortcutLocalService, getDLFileShortcutPersistence, getDLFileVersionLocalService, getDLFileVersionPersistence, getDLFolderFinder, getDLFolderLocalService, getDLFolderPersistence, getExpandoValueLocalService, getExpandoValuePersistence, getExportActionableDynamicQuery, getGroupFinder, getGroupLocalService, getGroupPersistence, getIndexableActionableDynamicQuery, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, getRepositories, getRepositoriesByUuidAndCompanyId, getRepositoriesByUuidAndCompanyId, getRepositoriesCount, getRepository, getRepositoryByUuidAndGroupId, getRepositoryEntryLocalService, getRepositoryEntryPersistence, getRepositoryLocalService, getRepositoryPersistence, getResourceLocalService, getSystemEventLocalService, getSystemEventPersistence, getUserFinder, getUserLocalService, getUserPersistence, initActionableDynamicQuery, runSQL, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setClassNameLocalService, setClassNamePersistence, setCompanyLocalService, setCompanyPersistence, setCounterLocalService, setDLAppHelperLocalService, setDLFileEntryFinder, setDLFileEntryLocalService, setDLFileEntryPersistence, setDLFileEntryTypeFinder, setDLFileEntryTypeLocalService, setDLFileEntryTypePersistence, setDLFileShortcutLocalService, setDLFileShortcutPersistence, setDLFileVersionLocalService, setDLFileVersionPersistence, setDLFolderFinder, setDLFolderLocalService, setDLFolderPersistence, setExpandoValueLocalService, setExpandoValuePersistence, setGroupFinder, setGroupLocalService, setGroupPersistence, setRepositoryEntryLocalService, setRepositoryEntryPersistence, setRepositoryLocalService, setRepositoryPersistence, setResourceLocalService, setSystemEventLocalService, setSystemEventPersistence, setUserFinder, setUserLocalService, setUserPersistence, updateRepository
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

repositoryProvider

@BeanReference(type=RepositoryProvider.class)
protected RepositoryProvider repositoryProvider
Constructor Detail

RepositoryLocalServiceImpl

public RepositoryLocalServiceImpl()
Method Detail

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
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)

Throws:
PortalException

checkRepository

public void checkRepository(long repositoryId)

deleteRepositories

public void deleteRepositories(long groupId)
                        throws PortalException
Throws:
PortalException

deleteRepository

public Repository deleteRepository(long repositoryId)
                            throws PortalException
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
Throws:
PortalException - if a repository with the primary key could not be found

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)

fetchRepository

public Repository fetchRepository(long groupId,
                                  String name,
                                  String portletId)

getGroupRepositories

public List<Repository> getGroupRepositories(long groupId)

getRepository

public Repository getRepository(long groupId,
                                String portletId)
                         throws PortalException
Throws:
PortalException

getRepository

public Repository getRepository(long groupId,
                                String name,
                                String portletId)
                         throws PortalException
Throws:
PortalException

getTypeSettingsProperties

public UnicodeProperties getTypeSettingsProperties(long repositoryId)
                                            throws PortalException
Throws:
PortalException

updateRepository

public void updateRepository(long repositoryId,
                             String name,
                             String description)
                      throws PortalException
Throws:
PortalException

updateRepository

public void updateRepository(long repositoryId,
                             UnicodeProperties typeSettingsProperties)
                      throws PortalException
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

Liferay 7.0-ce-b4