|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.talend.repository.model.AbstractRepositoryFactory
org.talend.repository.model.AbstractEMFRepositoryFactory
org.talend.repository.localprovider.model.LocalRepositoryFactory
public class LocalRepositoryFactory
DOC smallet class global comment. Detailled comment
$Id: LocalRepositoryFactory.java 3008 2007-04-10 09:18:10 +0000 (mar., 10 avr. 2007) smallet $ $Id: RepositoryFactory.java,v 1.55 2006/08/23
14:30:39 tguiu Exp $
| Constructor Summary | |
|---|---|
LocalRepositoryFactory()
|
|
| Method Summary | ||
|---|---|---|
protected
|
addFolderMembers(ERepositoryObjectType type,
Container<K,T> toReturn,
java.lang.Object objectFolder,
boolean onlyLastVersion)
DOC smallet Comment method "addFolderMembers". |
|
Item |
copy(Item originalItem,
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 |
createUser()
|
|
void |
deleteFolder(ERepositoryObjectType type,
org.eclipse.core.runtime.IPath path)
|
|
void |
deleteObjectLogical(IRepositoryObject objToDelete)
Deletes logically the given object. |
|
void |
deleteObjectPhysical(IRepositoryObject objToDelete)
Deletes physically the given object. |
|
boolean |
doesLoggedUserExist()
|
|
java.util.List<IRepositoryObject> |
getAll(ERepositoryObjectType type,
boolean withDeleted)
Returns all object of a given type. |
|
java.util.List<Status> |
getDocumentationStatus()
|
|
protected java.lang.Object |
getFolder(Project project,
ERepositoryObjectType repositoryObjectType)
|
|
protected FolderHelper |
getFolderHelper(Project emfProject)
|
|
static LocalRepositoryFactory |
getInstance()
|
|
IRepositoryObject |
getLastVersion(java.lang.String id)
Returns last version of an object given its id. |
|
protected
|
getObjectFromFolder(ERepositoryObjectType type,
boolean onlyLastVersion)
DOC smallet Comment method "getObjectFromFolder". |
|
java.util.List<IRepositoryObject> |
getProcess2()
|
|
java.util.List<Project> |
getReferencedProjects()
|
|
protected java.util.List<IRepositoryObject> |
getSerializableFromFolder(java.lang.Object folder,
java.lang.String id,
ERepositoryObjectType type,
boolean allVersion,
boolean searchInChildren,
boolean withDeleted)
Get all object in a folder recursively. |
|
ERepositoryStatus |
getStatus(Item item)
|
|
java.util.List<Status> |
getTechnicalStatus()
|
|
void |
initialize()
|
|
boolean |
isPathValid(ERepositoryObjectType type,
org.eclipse.core.runtime.IPath path,
java.lang.String label)
|
|
java.lang.String |
isServerValid()
|
|
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 newPath)
|
|
Project[] |
readProject()
|
|
Project[] |
readProject(boolean local)
|
|
Property |
reload(Property property)
DOC mhelleboid Comment method "cancel". |
|
void |
renameFolder(ERepositoryObjectType type,
org.eclipse.core.runtime.IPath path,
java.lang.String label)
|
|
void |
restoreObject(IRepositoryObject objToRestore,
org.eclipse.core.runtime.IPath path)
Restore a logically deleted object. |
|
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 |
setTechnicalStatus(java.util.List<Status> list)
|
|
void |
synchronizeRoutines(org.eclipse.core.resources.IProject prj)
DOC smallet Comment method "synchronizeRoutines". |
|
void |
unlock(Item item)
|
|
| Methods inherited from class org.talend.repository.model.AbstractEMFRepositoryFactory |
|---|
convert, copyFromResource, createSystemRoutines, getAllVersion, getBusinessProcess, getContext, getDocumentation, getMetadataConnection, getMetadataFileDelimited, getMetadataFileLdif, getMetadataFilePositional, getMetadataFileRegexp, getMetadataFileXml, getNextId, getProcess, getRoutine, getSerializable, isNameAvailable |
| Methods inherited from class org.talend.repository.model.AbstractRepositoryFactory |
|---|
getContextItem, getFields, getId, getMetadataConnectionsItem, getName, getRepositoryContext, isAuthenticationNeeded, setAuthenticationNeeded, setFields, setId, setName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.talend.repository.model.IRepositoryFactory |
|---|
getAllVersion, getBusinessProcess, getContext, getContextItem, getDocumentation, getFields, getId, getMetadataConnection, getMetadataConnectionsItem, getMetadataFileDelimited, getMetadataFileLdif, getMetadataFilePositional, getMetadataFileRegexp, getMetadataFileXml, getName, getNextId, getProcess, getRoutine, isAuthenticationNeeded, isNameAvailable, setAuthenticationNeeded, setFields, setId, setName |
| Constructor Detail |
|---|
public LocalRepositoryFactory()
| Method Detail |
|---|
public static LocalRepositoryFactory getInstance()
protected <K,T> RootContainer<K,T> getObjectFromFolder(ERepositoryObjectType type,
boolean onlyLastVersion)
throws PersistenceException
getObjectFromFolder in class AbstractEMFRepositoryFactoryT - - DOC smallettype - - the type of object to searchonlyLastVersion - specify true if only the last version of an object must be returned, false for all
versionproject - - the project to searched in
PersistenceException - if project, folder or resource cannot be found
protected <K,T> void addFolderMembers(ERepositoryObjectType type,
Container<K,T> toReturn,
java.lang.Object objectFolder,
boolean onlyLastVersion)
throws PersistenceException
addFolderMembers in class AbstractEMFRepositoryFactoryT - - DOC smallettype - - DOC smallettoReturn - - DOC smalletobjectFolder - - DOC smalletonlyLastVersion - specify true if only the last version of an object must be returned, false for all
version
PersistenceException - - DOC smallet
public java.util.List<IRepositoryObject> getAll(ERepositoryObjectType type,
boolean withDeleted)
throws PersistenceException
IRepositoryFactory
getAll in interface IRepositoryFactorytype - - the type
type in the repository in the project
PersistenceException
public IRepositoryObject getLastVersion(java.lang.String id)
throws PersistenceException
IRepositoryFactory
getLastVersion in interface IRepositoryFactoryid - - the id to look for
null if no object with this id has been
found
PersistenceException
protected java.util.List<IRepositoryObject> getSerializableFromFolder(java.lang.Object folder,
java.lang.String id,
ERepositoryObjectType type,
boolean allVersion,
boolean searchInChildren,
boolean withDeleted)
throws PersistenceException
getSerializableFromFolder in class AbstractEMFRepositoryFactoryfolder - - the folder to search inid - - the id of the object searched. Specify null to get all objects.type - - the type searchedallVersion - - true if all version of each object must be return or false if
on ly the most recent version
PersistenceException
public Project createProject(java.lang.String label,
java.lang.String description,
ECodeLanguage language,
User author)
throws PersistenceException
createProject in interface IRepositoryFactoryPersistenceException
public void synchronizeRoutines(org.eclipse.core.resources.IProject prj)
throws PersistenceException
PersistenceExceptionprotected FolderHelper getFolderHelper(Project emfProject)
getFolderHelper in class AbstractEMFRepositoryFactory
public Project[] readProject(boolean local)
throws PersistenceException
PersistenceException
public Project[] readProject()
throws PersistenceException
readProject in interface IRepositoryFactoryPersistenceExceptionorg.talend.core.model.repository.factories.IRepositoryFactory#readProject(java.lang.String,
java.lang.String, java.lang.String)
public Folder createFolder(ERepositoryObjectType type,
org.eclipse.core.runtime.IPath path,
java.lang.String label)
throws PersistenceException
createFolder in interface IRepositoryFactoryPersistenceException
public boolean isPathValid(ERepositoryObjectType type,
org.eclipse.core.runtime.IPath path,
java.lang.String label)
throws PersistenceException
isPathValid in interface IRepositoryFactoryPersistenceException
public void deleteFolder(ERepositoryObjectType type,
org.eclipse.core.runtime.IPath path)
throws PersistenceException
deleteFolder in interface IRepositoryFactoryPersistenceException
public void moveFolder(ERepositoryObjectType type,
org.eclipse.core.runtime.IPath sourcePath,
org.eclipse.core.runtime.IPath targetPath)
throws PersistenceException
moveFolder in interface IRepositoryFactoryPersistenceException
public void renameFolder(ERepositoryObjectType type,
org.eclipse.core.runtime.IPath path,
java.lang.String label)
throws PersistenceException
renameFolder in interface IRepositoryFactoryPersistenceException
public java.util.List<IRepositoryObject> getProcess2()
throws PersistenceException
PersistenceException
public void deleteObjectLogical(IRepositoryObject objToDelete)
throws PersistenceException
IRepositoryFactoryisDeleted on this object will now returned true.
deleteObjectLogical in interface IRepositoryFactoryobjToDelete - - the objet to delete
PersistenceException
public void deleteObjectPhysical(IRepositoryObject objToDelete)
throws PersistenceException
IRepositoryFactory
deleteObjectPhysical in interface IRepositoryFactoryobjToDelete - - the objet to delete
PersistenceException
public void restoreObject(IRepositoryObject objToRestore,
org.eclipse.core.runtime.IPath path)
throws PersistenceException
IRepositoryFactoryisDeleted on this object will now returned false.
restoreObject in interface IRepositoryFactoryobjToRestore - - the object to restorepath - - the path to restore the object. Cannot be null. Path is relative to root type folder.
PersistenceException
public void moveObject(IRepositoryObject objToMove,
org.eclipse.core.runtime.IPath newPath)
throws PersistenceException
moveObject in interface IRepositoryFactoryPersistenceException
public void lock(Item item)
throws PersistenceException
lock in interface IRepositoryFactoryPersistenceException
public void unlock(Item item)
throws PersistenceException
unlock in interface IRepositoryFactoryPersistenceException
public java.util.List<Status> getDocumentationStatus()
throws PersistenceException
getDocumentationStatus in interface IRepositoryFactoryPersistenceException
public java.util.List<Status> getTechnicalStatus()
throws PersistenceException
getTechnicalStatus in interface IRepositoryFactoryPersistenceException
public void setDocumentationStatus(java.util.List<Status> list)
throws PersistenceException
setDocumentationStatus in interface IRepositoryFactoryPersistenceException
public void setTechnicalStatus(java.util.List<Status> list)
throws PersistenceException
setTechnicalStatus in interface IRepositoryFactoryPersistenceException
public void setMigrationTasksDone(Project project,
java.util.List<java.lang.String> list)
throws PersistenceException
setMigrationTasksDone in interface IRepositoryFactoryPersistenceExceptionpublic java.lang.String isServerValid()
isServerValid in interface IRepositoryFactory
public void save(Item item)
throws PersistenceException
save in interface IRepositoryFactoryPersistenceException
public void save(Property property)
throws PersistenceException
save in interface IRepositoryFactoryPersistenceException
public Item copy(Item originalItem,
org.eclipse.core.runtime.IPath path)
throws PersistenceException,
BusinessException
copy in interface IRepositoryFactoryPersistenceException
BusinessException
public void create(Item item,
org.eclipse.core.runtime.IPath path)
throws PersistenceException
create in interface IRepositoryFactoryPersistenceExceptionpublic Property reload(Property property)
IRepositoryFactory
reload in interface IRepositoryFactory
public boolean doesLoggedUserExist()
throws PersistenceException
PersistenceException
public void createUser()
throws PersistenceException
PersistenceExceptionpublic void initialize()
initialize in interface IRepositoryFactory
public void logOnProject(Project project)
throws PersistenceException
logOnProject in interface IRepositoryFactoryPersistenceExceptionpublic ERepositoryStatus getStatus(Item item)
getStatus in interface IRepositoryFactory
protected java.lang.Object getFolder(Project project,
ERepositoryObjectType repositoryObjectType)
throws PersistenceException
getFolder in class AbstractEMFRepositoryFactoryPersistenceExceptionpublic java.util.List<Project> getReferencedProjects()
getReferencedProjects in interface IRepositoryFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||