|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IRepositoryFactory
Defines all methods that a repository provider plug-in must provides to client.
$Id: IRepositoryFactory.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)
Deletes logically the given object. |
void |
deleteObjectPhysical(IRepositoryObject objToDelete)
Deletes physically the given object. |
java.util.List<IRepositoryObject> |
getAll(ERepositoryObjectType type,
boolean withDeleted)
Returns all object of a given type. |
java.util.List<IRepositoryObject> |
getAllVersion(java.lang.String id)
Returns all version of an object given its id. |
RootContainer<java.lang.String,IRepositoryObject> |
getBusinessProcess()
|
RootContainer<java.lang.String,IRepositoryObject> |
getContext()
|
java.util.List<ContextItem> |
getContextItem()
get all context items. |
RootContainer<java.lang.String,IRepositoryObject> |
getDocumentation()
|
java.util.List<Status> |
getDocumentationStatus()
|
java.util.List<DynamicFieldBean> |
getFields()
|
java.lang.String |
getId()
|
IRepositoryObject |
getLastVersion(java.lang.String id)
Returns last version of an object given its id. |
RootContainer<java.lang.String,IRepositoryObject> |
getMetadataConnection()
|
java.util.List<ConnectionItem> |
getMetadataConnectionsItem()
gather all the metadata connections (file / db / etc ...). |
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 |
getName()
|
java.lang.String |
getNextId()
|
RootContainer<java.lang.String,IRepositoryObject> |
getProcess()
|
java.util.List<Project> |
getReferencedProjects()
|
RootContainer<java.lang.String,IRepositoryObject> |
getRoutine()
|
ERepositoryStatus |
getStatus(Item item)
|
java.util.List<Status> |
getTechnicalStatus()
|
void |
initialize()
|
boolean |
isAuthenticationNeeded()
|
boolean |
isNameAvailable(Item item,
java.lang.String name)
Returns if the name is used by another item of the same type. |
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()
|
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 |
setAuthenticationNeeded(boolean aBnthenticationNeeded)
|
void |
setDocumentationStatus(java.util.List<Status> list)
|
void |
setFields(java.util.List<DynamicFieldBean> fields)
|
void |
setId(java.lang.String id)
|
void |
setMigrationTasksDone(Project project,
java.util.List<java.lang.String> list)
|
void |
setName(java.lang.String name)
|
void |
setTechnicalStatus(java.util.List<Status> list)
|
void |
unlock(Item obj)
|
| Method Detail |
|---|
java.lang.String getId()
void setId(java.lang.String id)
java.lang.String getName()
void setName(java.lang.String name)
java.util.List<DynamicFieldBean> getFields()
void setFields(java.util.List<DynamicFieldBean> fields)
boolean isAuthenticationNeeded()
void setAuthenticationNeeded(boolean aBnthenticationNeeded)
void initialize()
void logOnProject(Project project)
throws LoginException,
PersistenceException
LoginException
PersistenceExceptionjava.lang.String getNextId()
Project createProject(java.lang.String label,
java.lang.String description,
ECodeLanguage language,
User author)
throws PersistenceException
PersistenceException
Project[] readProject()
throws PersistenceException,
BusinessException
PersistenceException
BusinessException
Folder createFolder(ERepositoryObjectType type,
org.eclipse.core.runtime.IPath path,
java.lang.String label)
throws PersistenceException
PersistenceException
boolean isNameAvailable(Item item,
java.lang.String name)
throws PersistenceException
item - name - TODO
true if the name is not used an so is available.
PersistenceException
boolean isPathValid(ERepositoryObjectType type,
org.eclipse.core.runtime.IPath path,
java.lang.String label)
throws PersistenceException
PersistenceException
void deleteFolder(ERepositoryObjectType type,
org.eclipse.core.runtime.IPath path)
throws PersistenceException
PersistenceException
void moveFolder(ERepositoryObjectType type,
org.eclipse.core.runtime.IPath sourcePath,
org.eclipse.core.runtime.IPath targetPath)
throws PersistenceException
PersistenceException
void renameFolder(ERepositoryObjectType type,
org.eclipse.core.runtime.IPath path,
java.lang.String label)
throws PersistenceException
PersistenceException
java.util.List<IRepositoryObject> getAllVersion(java.lang.String id)
throws PersistenceException
project - - the current projectid - - the id to look for
PersistenceException
IRepositoryObject getLastVersion(java.lang.String id)
throws PersistenceException
project - - the current projectid - - the id to look for
null if no object with this id has been
found
PersistenceException
java.util.List<IRepositoryObject> getAll(ERepositoryObjectType type,
boolean withDeleted)
throws PersistenceException
project - - the current projecttype - - the type
type in the repository in the project
PersistenceException
void deleteObjectLogical(IRepositoryObject objToDelete)
throws PersistenceException
isDeleted on this object will now returned true.
project - - the current projectobjToDelete - - the objet to deletedeletionAuthor - - the user perfom the deletion (only for logging in this version)
PersistenceException
void deleteObjectPhysical(IRepositoryObject objToDelete)
throws PersistenceException
project - - the current projectobjToDelete - - the objet to deletedeletionAuthor - - the user perfom the deletion (only for logging in this version)
PersistenceException
void restoreObject(IRepositoryObject objToRestore,
org.eclipse.core.runtime.IPath path)
throws PersistenceException
isDeleted on this object will now returned false.
project - - the current projectobjToRestore - - the object to restorepath - - the path to restore the object. Cannot be null. Path is relative to root type folder.restorationAuthor - - the user perfom the restoration (only for logging in this version)
PersistenceException
void moveObject(IRepositoryObject objToMove,
org.eclipse.core.runtime.IPath newPath)
throws PersistenceException
PersistenceException
void lock(Item item)
throws PersistenceException,
BusinessException
PersistenceException
BusinessException
void unlock(Item obj)
throws PersistenceException
PersistenceExceptionERepositoryStatus getStatus(Item item)
java.util.List<Status> getTechnicalStatus()
throws PersistenceException
PersistenceException
java.util.List<Status> getDocumentationStatus()
throws PersistenceException
PersistenceException
void setTechnicalStatus(java.util.List<Status> list)
throws PersistenceException
PersistenceException
void setDocumentationStatus(java.util.List<Status> list)
throws PersistenceException
PersistenceException
void setMigrationTasksDone(Project project,
java.util.List<java.lang.String> list)
throws PersistenceException
PersistenceException
java.lang.String isServerValid()
throws BusinessException
BusinessException
void create(Item item,
org.eclipse.core.runtime.IPath path)
throws PersistenceException
PersistenceException
void save(Item item)
throws PersistenceException
PersistenceException
void save(Property property)
throws PersistenceException
PersistenceException
Item copy(Item item,
org.eclipse.core.runtime.IPath path)
throws PersistenceException,
BusinessException
PersistenceException
BusinessException
Property reload(Property property)
throws PersistenceException
property -
PersistenceException
RootContainer<java.lang.String,IRepositoryObject> getBusinessProcess()
throws PersistenceException
PersistenceException
RootContainer<java.lang.String,IRepositoryObject> getDocumentation()
throws PersistenceException
PersistenceException
RootContainer<java.lang.String,IRepositoryObject> getProcess()
throws PersistenceException
PersistenceException
RootContainer<java.lang.String,IRepositoryObject> getContext()
throws PersistenceException
PersistenceException
RootContainer<java.lang.String,IRepositoryObject> getRoutine()
throws PersistenceException
PersistenceException
RootContainer<java.lang.String,IRepositoryObject> getMetadataConnection()
throws PersistenceException
PersistenceException
RootContainer<java.lang.String,IRepositoryObject> getMetadataFileDelimited()
throws PersistenceException
PersistenceException
RootContainer<java.lang.String,IRepositoryObject> getMetadataFilePositional()
throws PersistenceException
PersistenceException
RootContainer<java.lang.String,IRepositoryObject> getMetadataFileRegexp()
throws PersistenceException
PersistenceException
RootContainer<java.lang.String,IRepositoryObject> getMetadataFileXml()
throws PersistenceException
PersistenceException
RootContainer<java.lang.String,IRepositoryObject> getMetadataFileLdif()
throws PersistenceException
PersistenceException
java.util.List<ConnectionItem> getMetadataConnectionsItem()
throws PersistenceException
PersistenceException
java.util.List<ContextItem> getContextItem()
throws PersistenceException
PersistenceExceptionjava.util.List<Project> getReferencedProjects()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||