Class DesktopProject
java.lang.Object
ca.phon.project.AbstractProject
ca.phon.project.LocalProject
ca.phon.app.project.DesktopProject
- All Implemented Interfaces:
IExtendable,MutableProject,Project,ProjectDeprecated,ProjectEvents,ProjectMediaFolders,ProjectPaths,ProjectRefresh,ProjectResources,SessionDetails,SessionTemplate
Local project which will send files to trash instead of
deleting them during corpus/session removal.
-
Field Summary
Fields inherited from class ca.phon.project.LocalProject
CORPUS_DESC_FILE, PREV_PROJECT_PROPERTIES_FILE, PROJECT_FILE_EXT, PROJECT_PROPERTIES_FILE, PROJECT_RES_FOLDER, sessionTemplateFileFields inherited from class ca.phon.project.AbstractProject
PROJECT_XML_FILE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidremoveCorpus(String corpus) Delete the specified corpus and all sessions it contains.voidremoveSession(String corpus, String session, SessionWriteLock writeLock) Remove a session from the project.Methods inherited from class ca.phon.project.LocalProject
addCorpus, addCorpus, addProjectMediaFolder, addProjectMediaFolder, checkSessionWriteLock, createSessionFromTemplate, getCorpora, getCorpusDescription, getCorpusFolder, getCorpusIterator, getCorpusMediaFolder, getCorpusPath, getCorpusSessions, getLocation, getName, getParticipants, getProjectMediaFolder, getProjectMediaFolders, getResourceInputStream, getResourceLocation, getResourceOutputStream, getSessionByteSize, getSessionByteSize, getSessionFile, getSessionIterator, getSessionModificationTime, getSessionModificationTime, getSessionPath, getSessionPath, getSessionTemplate, getSessionWriteLock, getSessionWriteLock, getUUID, getVersion, hasCorpus, hasCustomCorpusMediaFolder, hasCustomProjectMediaFolder, hasSession, isSessionLocked, isSessionLocked, numberOfRecordsInSession, openSession, openSession, refresh, releaseSessionWriteLock, releaseSessionWriteLock, removeProjectMediaFolder, removeSession, renameCorpus, saveProjectData, saveSession, saveSession, saveSession, saveSessionTemplate, setCorpusDescription, setCorpusMediaFolder, setCorpusPath, setName, setProjectMediaFolder, setResourceLocation, setUUID, toStringMethods inherited from class ca.phon.project.AbstractProject
addProjectListener, fireProjectDataChanged, fireProjectStructureChanged, fireProjectWriteLocksChanged, getExtension, getExtensions, getProjectListeners, putExtension, removeExtension, removeProjectListener
-
Constructor Details
-
DesktopProject
- Throws:
ProjectConfigurationException
-
-
Method Details
-
removeCorpus
Description copied from interface:MutableProjectDelete the specified corpus and all sessions it contains.- Specified by:
removeCorpusin interfaceMutableProject- Overrides:
removeCorpusin classLocalProject- Parameters:
corpus- the corpus to delete- Throws:
IOException- if the corpus could not be deleted
-
removeSession
public void removeSession(String corpus, String session, SessionWriteLock writeLock) throws IOException Description copied from interface:MutableProjectRemove a session from the project. The writeLock for the session is also released. SeeMutableProject.removeSession(Session, SessionWriteLock)for more information on how to use the write lock.- Specified by:
removeSessionin interfaceMutableProject- Overrides:
removeSessionin classLocalProject- Parameters:
session- the session to removewriteLock- the write lock for the session- Throws:
IOException
-