org.talend.repository.model
Class ProxyRepositoryFactory
java.lang.Object
org.talend.repository.model.ProxyRepositoryFactory
- All Implemented Interfaces:
- IProxyRepositoryFactory
public class ProxyRepositoryFactory
- extends java.lang.Object
- implements IProxyRepositoryFactory
Repository factory use by client. Based on implementation provide by extension point system. This class contains all
commons treatments done by repository whatever implementation.
$Id: ProxyRepositoryFactory.java 3008 2007-04-10 09:18:10 +0000 (mar., 10 avr. 2007) smallet $
|
Method Summary |
Item |
copy(Item item,
org.eclipse.core.runtime.IPath path)
|
void |
create(Item item,
org.eclipse.core.runtime.IPath path)
|
Folder |
createFolder(ERepositoryObjectType type,
org.eclipse.core.runtime.IPath path,
java.lang.String label)
|
Project |
createProject(java.lang.String label,
java.lang.String description,
ECodeLanguage language,
User author)
|
void |
deleteFolder(ERepositoryObjectType type,
org.eclipse.core.runtime.IPath path)
|
void |
deleteObjectLogical(IRepositoryObject objToDelete)
|
void |
deleteObjectPhysical(IRepositoryObject objToDelete)
|
java.util.List<IRepositoryObject> |
getAll(ERepositoryObjectType type)
|
java.util.List<IRepositoryObject> |
getAll(ERepositoryObjectType type,
boolean withDeleted)
|
java.util.List<IRepositoryObject> |
getAllVersion(java.lang.String id)
|
RootContainer<java.lang.String,IRepositoryObject> |
getBusinessProcess()
|
RootContainer<java.lang.String,IRepositoryObject> |
getContext()
|
java.util.List<ContextItem> |
getContextItem()
|
RootContainer<java.lang.String,IRepositoryObject> |
getDocumentation()
|
java.util.List<Status> |
getDocumentationStatus()
|
java.util.List<java.lang.String> |
getFolders(ERepositoryObjectType type)
|
static ProxyRepositoryFactory |
getInstance()
|
IRepositoryObject |
getLastVersion(java.lang.String id)
|
RootContainer<java.lang.String,IRepositoryObject> |
getMetadataConnection()
|
java.util.List<ConnectionItem> |
getMetadataConnectionsItem()
|
RootContainer<java.lang.String,IRepositoryObject> |
getMetadataFileDelimited()
|
RootContainer<java.lang.String,IRepositoryObject> |
getMetadataFileLdif()
|
RootContainer<java.lang.String,IRepositoryObject> |
getMetadataFilePositional()
|
RootContainer<java.lang.String,IRepositoryObject> |
getMetadataFileRegexp()
|
RootContainer<java.lang.String,IRepositoryObject> |
getMetadataFileXml()
|
java.lang.String |
getNextId()
|
RootContainer<java.lang.String,IRepositoryObject> |
getProcess()
|
java.util.List<Project> |
getReferencedProjects()
|
RepositoryContext |
getRepositoryContext()
|
IRepositoryFactory |
getRepositoryFactoryFromProvider()
|
RootContainer<java.lang.String,IRepositoryObject> |
getRoutine()
|
ERepositoryStatus |
getStatus(IRepositoryObject obj)
|
ERepositoryStatus |
getStatus(Item item)
|
java.util.List<Status> |
getTechnicalStatus()
|
void |
initialize()
|
boolean |
isDeleted(MetadataTable table)
Deprecated. |
boolean |
isEditableAndLockIfPossible(IRepositoryObject obj)
|
boolean |
isEditableAndLockIfPossible(Item item)
|
boolean |
isNameAvailable(Item item,
java.lang.String name)
|
boolean |
isPathValid(ERepositoryObjectType type,
org.eclipse.core.runtime.IPath path,
java.lang.String label)
|
boolean |
isPotentiallyEditable(IRepositoryObject obj)
|
boolean |
isUserReadOnlyOnCurrentProject()
|
void |
lock(IRepositoryObject obj)
|
void |
lock(Item item)
|
void |
logOnProject(Project project)
|
void |
moveFolder(ERepositoryObjectType type,
org.eclipse.core.runtime.IPath sourcePath,
org.eclipse.core.runtime.IPath targetPath)
|
void |
moveObject(IRepositoryObject objToMove,
org.eclipse.core.runtime.IPath path)
|
Project[] |
readProject()
|
void |
refreshJobPictureFolder()
|
Property |
reload(Property property)
|
void |
removeContextFiles(IProcess process,
IContext context)
|
void |
renameFolder(ERepositoryObjectType type,
org.eclipse.core.runtime.IPath path,
java.lang.String label)
|
void |
restoreObject(IRepositoryObject objToRestore,
org.eclipse.core.runtime.IPath path)
|
void |
save(Item item)
|
void |
save(Property property)
|
void |
setDocumentationStatus(java.util.List<Status> list)
|
void |
setMigrationTasksDone(Project project,
java.util.List<java.lang.String> list)
|
void |
setRepositoryFactoryFromProvider(IRepositoryFactory repositoryFactoryFromProvider)
|
void |
setTechnicalStatus(java.util.List<Status> list)
|
void |
unlock(IRepositoryObject obj)
|
void |
unlock(Item obj)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProxyRepositoryFactory
public ProxyRepositoryFactory()
- DOC smallet ProxyRepositoryFactory constructor comment.
getInstance
public static ProxyRepositoryFactory getInstance()
refreshJobPictureFolder
public void refreshJobPictureFolder()
- Specified by:
refreshJobPictureFolder in interface IProxyRepositoryFactory
getRepositoryContext
public RepositoryContext getRepositoryContext()
- Specified by:
getRepositoryContext in interface IProxyRepositoryFactory
getRepositoryFactoryFromProvider
public IRepositoryFactory getRepositoryFactoryFromProvider()
setRepositoryFactoryFromProvider
public void setRepositoryFactoryFromProvider(IRepositoryFactory repositoryFactoryFromProvider)
getMetadataConnectionsItem
public java.util.List<ConnectionItem> getMetadataConnectionsItem()
throws PersistenceException
- Specified by:
getMetadataConnectionsItem in interface IProxyRepositoryFactory
- Returns:
-
- Throws:
PersistenceException- See Also:
org.talend.repository.model.IMetadataFactory#getMetadataConnections(org.talend.core.model.general.Project)
getContextItem
public java.util.List<ContextItem> getContextItem()
throws PersistenceException
- Specified by:
getContextItem in interface IProxyRepositoryFactory
- Throws:
PersistenceException
isNameAvailable
public boolean isNameAvailable(Item item,
java.lang.String name)
throws PersistenceException
- Specified by:
isNameAvailable in interface IProxyRepositoryFactory
- Throws:
PersistenceException
isPathValid
public boolean isPathValid(ERepositoryObjectType type,
org.eclipse.core.runtime.IPath path,
java.lang.String label)
throws PersistenceException
- Specified by:
isPathValid in interface IProxyRepositoryFactory
- Throws:
PersistenceException
createProject
public Project createProject(java.lang.String label,
java.lang.String description,
ECodeLanguage language,
User author)
throws PersistenceException
- Specified by:
createProject in interface IProxyRepositoryFactory
- Returns:
-
- Throws:
PersistenceException- See Also:
org.talend.core.model.repository.factories.IRepositoryFactory#createProject(java.lang.String,
java.lang.String, java.lang.String, org.talend.core.model.general.User)
createFolder
public Folder createFolder(ERepositoryObjectType type,
org.eclipse.core.runtime.IPath path,
java.lang.String label)
throws PersistenceException
- Specified by:
createFolder in interface IProxyRepositoryFactory
- Throws:
PersistenceException- See Also:
org.talend.core.model.repository.factories.IRepositoryFactory#createFolder(org.talend.core.model.general.Project,
org.talend.core.model.repository.ERepositoryObjectType, org.eclipse.core.runtime.IPath, java.lang.String)
deleteFolder
public void deleteFolder(ERepositoryObjectType type,
org.eclipse.core.runtime.IPath path)
throws PersistenceException
- Specified by:
deleteFolder in interface IProxyRepositoryFactory
- Throws:
PersistenceException- See Also:
org.talend.core.model.repository.factories.IRepositoryFactory#deleteFolder(org.talend.core.model.general.Project,
org.talend.core.model.repository.ERepositoryObjectType, org.eclipse.core.runtime.IPath)
moveFolder
public void moveFolder(ERepositoryObjectType type,
org.eclipse.core.runtime.IPath sourcePath,
org.eclipse.core.runtime.IPath targetPath)
throws PersistenceException
- Specified by:
moveFolder in interface IProxyRepositoryFactory
- Throws:
PersistenceException- See Also:
org.talend.core.model.repository.factories.IRepositoryFactory#moveFolder(org.talend.core.model.general.Project,
org.talend.core.model.repository.ERepositoryObjectType, org.eclipse.core.runtime.IPath,
org.eclipse.core.runtime.IPath)
getBusinessProcess
public RootContainer<java.lang.String,IRepositoryObject> getBusinessProcess()
throws PersistenceException
- Specified by:
getBusinessProcess in interface IProxyRepositoryFactory
- Returns:
-
- Throws:
PersistenceException- See Also:
org.talend.core.model.repository.factories.IBusinessProcessFactory#getBusinessProcess(org.talend.core.model.general.Project)
getDocumentation
public RootContainer<java.lang.String,IRepositoryObject> getDocumentation()
throws PersistenceException
- Specified by:
getDocumentation in interface IProxyRepositoryFactory
- Returns:
-
- Throws:
PersistenceException- See Also:
org.talend.core.model.repository.factories.IDocumentationFactory#getDocumentation(org.talend.core.model.general.Project)
getMetadataConnection
public RootContainer<java.lang.String,IRepositoryObject> getMetadataConnection()
throws PersistenceException
- Specified by:
getMetadataConnection in interface IProxyRepositoryFactory
- Returns:
-
- Throws:
PersistenceException- See Also:
org.talend.core.model.repository.factories.IMetadataFactory#getMetadataConnection(org.talend.core.model.general.Project)
getMetadataFileDelimited
public RootContainer<java.lang.String,IRepositoryObject> getMetadataFileDelimited()
throws PersistenceException
- Specified by:
getMetadataFileDelimited in interface IProxyRepositoryFactory
- Returns:
-
- Throws:
PersistenceException- See Also:
org.talend.core.model.repository.factories.IMetadataFactory#getMetadataFileDelimited(org.talend.core.model.general.Project)
getNextId
public java.lang.String getNextId()
- Specified by:
getNextId in interface IProxyRepositoryFactory
- Returns:
- See Also:
org.talend.core.model.repository.factories.IRepositoryFactory#getNextId(org.talend.core.model.general.Project)
getProcess
public RootContainer<java.lang.String,IRepositoryObject> getProcess()
throws PersistenceException
- Specified by:
getProcess in interface IProxyRepositoryFactory
- Returns:
-
- Throws:
PersistenceException- See Also:
org.talend.core.model.repository.factories.IProcessFactory#getProcess(org.talend.core.model.general.Project)
getContext
public RootContainer<java.lang.String,IRepositoryObject> getContext()
throws PersistenceException
- Specified by:
getContext in interface IProxyRepositoryFactory
- Returns:
-
- Throws:
PersistenceException- See Also:
org.talend.core.model.repository.factories.IProcessFactory#getContext(org.talend.core.model.general.Project)
getRoutine
public RootContainer<java.lang.String,IRepositoryObject> getRoutine()
throws PersistenceException
- Specified by:
getRoutine in interface IProxyRepositoryFactory
- Returns:
-
- Throws:
PersistenceException- See Also:
org.talend.core.model.repository.factories.IRoutineFactory#getRoutine(org.talend.core.model.general.Project)
readProject
public Project[] readProject()
throws PersistenceException,
BusinessException
- Specified by:
readProject in interface IProxyRepositoryFactory
- Returns:
-
- Throws:
PersistenceException
BusinessException- See Also:
org.talend.core.model.repository.factories.IRepositoryFactory#readProject(java.lang.String,
java.lang.String, java.lang.String)
renameFolder
public void renameFolder(ERepositoryObjectType type,
org.eclipse.core.runtime.IPath path,
java.lang.String label)
throws PersistenceException
- Specified by:
renameFolder in interface IProxyRepositoryFactory
- Throws:
PersistenceException- See Also:
org.talend.core.model.repository.factories.IRepositoryFactory#renameFolder(org.talend.core.model.general.Project,
org.talend.core.model.repository.ERepositoryObjectType, org.eclipse.core.runtime.IPath, java.lang.String)
deleteObjectLogical
public void deleteObjectLogical(IRepositoryObject objToDelete)
throws PersistenceException,
BusinessException
- Specified by:
deleteObjectLogical in interface IProxyRepositoryFactory
- Throws:
PersistenceException
BusinessException
deleteObjectPhysical
public void deleteObjectPhysical(IRepositoryObject objToDelete)
throws PersistenceException
- Specified by:
deleteObjectPhysical in interface IProxyRepositoryFactory
- Throws:
PersistenceException
restoreObject
public void restoreObject(IRepositoryObject objToRestore,
org.eclipse.core.runtime.IPath path)
throws PersistenceException,
BusinessException
- Specified by:
restoreObject in interface IProxyRepositoryFactory
- Throws:
PersistenceException
BusinessException
moveObject
public void moveObject(IRepositoryObject objToMove,
org.eclipse.core.runtime.IPath path)
throws PersistenceException,
BusinessException
- Specified by:
moveObject in interface IProxyRepositoryFactory
- Throws:
PersistenceException
BusinessException
getMetadataFilePositional
public RootContainer<java.lang.String,IRepositoryObject> getMetadataFilePositional()
throws PersistenceException
- Specified by:
getMetadataFilePositional in interface IProxyRepositoryFactory
- Returns:
-
- Throws:
PersistenceException- See Also:
org.talend.core.model.repository.factories.IMetadataFactory#getMetadataFilePositional(org.talend.core.model.general.Project)
getMetadataFileRegexp
public RootContainer<java.lang.String,IRepositoryObject> getMetadataFileRegexp()
throws PersistenceException
- Specified by:
getMetadataFileRegexp in interface IProxyRepositoryFactory
- Returns:
-
- Throws:
PersistenceException- See Also:
org.talend.core.model.repository.factories.IMetadataFactory#getMetadataFileRegexp(org.talend.core.model.general.Project)
getMetadataFileXml
public RootContainer<java.lang.String,IRepositoryObject> getMetadataFileXml()
throws PersistenceException
- Specified by:
getMetadataFileXml in interface IProxyRepositoryFactory
- Returns:
-
- Throws:
PersistenceException- See Also:
org.talend.core.model.repository.factories.IMetadataFactory#getMetadataFileXml(org.talend.core.model.general.Project)
getMetadataFileLdif
public RootContainer<java.lang.String,IRepositoryObject> getMetadataFileLdif()
throws PersistenceException
- Specified by:
getMetadataFileLdif in interface IProxyRepositoryFactory
- Returns:
-
- Throws:
PersistenceException- See Also:
org.talend.core.model.repository.factories.IMetadataFactory#getMetadataFileLdif(org.talend.core.model.general.Project)
lock
public void lock(IRepositoryObject obj)
throws PersistenceException,
BusinessException
- Specified by:
lock in interface IProxyRepositoryFactory
- Throws:
PersistenceException
BusinessException
lock
public void lock(Item item)
throws PersistenceException,
BusinessException
- Specified by:
lock in interface IProxyRepositoryFactory
- Throws:
PersistenceException
BusinessException- See Also:
IRepositoryFactory.lock(org.talend.core.model.properties.Item)
getAllVersion
public java.util.List<IRepositoryObject> getAllVersion(java.lang.String id)
throws PersistenceException
- Specified by:
getAllVersion in interface IProxyRepositoryFactory
- Throws:
PersistenceException
getLastVersion
public IRepositoryObject getLastVersion(java.lang.String id)
throws PersistenceException
- Specified by:
getLastVersion in interface IProxyRepositoryFactory
- Throws:
PersistenceException
getAll
public java.util.List<IRepositoryObject> getAll(ERepositoryObjectType type)
throws PersistenceException
- Specified by:
getAll in interface IProxyRepositoryFactory
- Throws:
PersistenceException
getAll
public java.util.List<IRepositoryObject> getAll(ERepositoryObjectType type,
boolean withDeleted)
throws PersistenceException
- Specified by:
getAll in interface IProxyRepositoryFactory
- Throws:
PersistenceException
getFolders
public java.util.List<java.lang.String> getFolders(ERepositoryObjectType type)
throws PersistenceException
- Specified by:
getFolders in interface IProxyRepositoryFactory
- Throws:
PersistenceException
getDocumentationStatus
public java.util.List<Status> getDocumentationStatus()
throws PersistenceException
- Specified by:
getDocumentationStatus in interface IProxyRepositoryFactory
- Returns:
-
- Throws:
PersistenceException- See Also:
IRepositoryFactory.getDocumentationStatus()
getTechnicalStatus
public java.util.List<Status> getTechnicalStatus()
throws PersistenceException
- Specified by:
getTechnicalStatus in interface IProxyRepositoryFactory
- Returns:
-
- Throws:
PersistenceException- See Also:
IRepositoryFactory.getTechnicalStatus()
setDocumentationStatus
public void setDocumentationStatus(java.util.List<Status> list)
throws PersistenceException
- Specified by:
setDocumentationStatus in interface IProxyRepositoryFactory
- Throws:
PersistenceException- See Also:
IRepositoryFactory.setDocumentationStatus(java.util.List)
setTechnicalStatus
public void setTechnicalStatus(java.util.List<Status> list)
throws PersistenceException
- Specified by:
setTechnicalStatus in interface IProxyRepositoryFactory
- Throws:
PersistenceException- See Also:
IRepositoryFactory.setTechnicalStatus(java.util.List)
setMigrationTasksDone
public void setMigrationTasksDone(Project project,
java.util.List<java.lang.String> list)
throws PersistenceException
- Specified by:
setMigrationTasksDone in interface IProxyRepositoryFactory
- Throws:
PersistenceException
create
public void create(Item item,
org.eclipse.core.runtime.IPath path)
throws PersistenceException
- Specified by:
create in interface IProxyRepositoryFactory
- Throws:
PersistenceException
save
public void save(Item item)
throws PersistenceException
- Specified by:
save in interface IProxyRepositoryFactory
- Throws:
PersistenceException
save
public void save(Property property)
throws PersistenceException
- Specified by:
save in interface IProxyRepositoryFactory
- Throws:
PersistenceException
copy
public Item copy(Item item,
org.eclipse.core.runtime.IPath path)
throws PersistenceException,
BusinessException
- Specified by:
copy in interface IProxyRepositoryFactory
- Throws:
PersistenceException
BusinessException
reload
public Property reload(Property property)
throws PersistenceException
- Specified by:
reload in interface IProxyRepositoryFactory
- Throws:
PersistenceException
unlock
public void unlock(IRepositoryObject obj)
throws PersistenceException
- Specified by:
unlock in interface IProxyRepositoryFactory
- Throws:
PersistenceException
unlock
public void unlock(Item obj)
throws PersistenceException
- Specified by:
unlock in interface IProxyRepositoryFactory
- Throws:
PersistenceException- See Also:
IRepositoryFactory.unlock(org.talend.core.model.properties.Item)
initialize
public void initialize()
- Specified by:
initialize in interface IProxyRepositoryFactory
logOnProject
public void logOnProject(Project project)
throws PersistenceException,
LoginException
- Parameters:
project -
- Throws:
PersistenceException
LoginException- See Also:
IRepositoryFactory.logOnProject(org.talend.core.model.general.Project)
getStatus
public ERepositoryStatus getStatus(IRepositoryObject obj)
- Specified by:
getStatus in interface IProxyRepositoryFactory
isDeleted
@Deprecated
public boolean isDeleted(MetadataTable table)
- Deprecated.
- Specified by:
isDeleted in interface IProxyRepositoryFactory
isUserReadOnlyOnCurrentProject
public boolean isUserReadOnlyOnCurrentProject()
- Specified by:
isUserReadOnlyOnCurrentProject in interface IProxyRepositoryFactory
getStatus
public ERepositoryStatus getStatus(Item item)
- Specified by:
getStatus in interface IProxyRepositoryFactory
isEditableAndLockIfPossible
public boolean isEditableAndLockIfPossible(Item item)
- Specified by:
isEditableAndLockIfPossible in interface IProxyRepositoryFactory
isEditableAndLockIfPossible
public boolean isEditableAndLockIfPossible(IRepositoryObject obj)
- Specified by:
isEditableAndLockIfPossible in interface IProxyRepositoryFactory
isPotentiallyEditable
public boolean isPotentiallyEditable(IRepositoryObject obj)
- Specified by:
isPotentiallyEditable in interface IProxyRepositoryFactory
getReferencedProjects
public java.util.List<Project> getReferencedProjects()
- Specified by:
getReferencedProjects in interface IProxyRepositoryFactory
removeContextFiles
public void removeContextFiles(IProcess process,
IContext context)
throws java.lang.Exception
- Specified by:
removeContextFiles in interface IProxyRepositoryFactory
- Throws:
java.lang.Exception