Package ca.phon.app.project
Class DesktopProject
java.lang.Object
ca.phon.project.AbstractProject
ca.phon.project.LocalProject
ca.phon.app.project.DesktopProject
- All Implemented Interfaces:
IExtendable
,Project
,ProjectRefresh
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_MEDIAFOLDER_PROP, PREV_PROJECT_PROPERTIES_FILE, PROJECT_MEDIAFOLDER_PROP, PROJECT_NAME_PROP, PROJECT_PROPERTIES_FILE, PROJECT_UUID_PROP
Fields inherited from class ca.phon.project.AbstractProject
PROJECT_XML_FILE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
removeCorpus
(String corpus) Delete the specified corpus and all sessions it contains.void
removeSession
(String corpus, String session, UUID writeLock) Remove a session from the project.Methods inherited from class ca.phon.project.LocalProject
addCorpus, checkSessionWriteLock, createSessionFromTemplate, getCorpora, getCorpusDescription, getCorpusFolder, getCorpusMediaFolder, getCorpusPath, getCorpusSessions, getLocation, getName, getParticipants, getProjectMediaFolder, getResourceInputStream, getResourceLocation, getResourceOutputStream, getSessionByteSize, getSessionByteSize, getSessionFile, getSessionModificationTime, getSessionModificationTime, getSessionPath, getSessionPath, getSessionTemplate, getSessionWriteLock, getSessionWriteLock, getUUID, getVersion, hasCustomCorpusMediaFolder, hasCustomProjectMediaFolder, isSessionLocked, isSessionLocked, numberOfRecordsInSession, openSession, openSession, refresh, releaseSessionWriteLock, releaseSessionWriteLock, removeSession, renameCorpus, saveProjectData, saveProperties, saveSession, saveSession, saveSession, saveSessionTemplate, setCorpusDescription, setCorpusMediaFolder, setCorpusPath, setName, setProjectMediaFolder, setResourceLocation, setUUID, toString
Methods inherited from class ca.phon.project.AbstractProject
addProjectListener, fireProjectDataChanged, fireProjectStructureChanged, fireProjectWriteLocksChanged, getExtension, getExtensions, getProjectListeners, loadProjectData, putExtension, removeExtension, removeProjectListener
-
Constructor Details
-
DesktopProject
- Throws:
ProjectConfigurationException
-
-
Method Details
-
removeCorpus
Description copied from interface:Project
Delete the specified corpus and all sessions it contains.- Specified by:
removeCorpus
in interfaceProject
- Overrides:
removeCorpus
in classLocalProject
- Throws:
IOException
- if the corpus could not be deleted
-
removeSession
Description copied from interface:Project
Remove a session from the project. The writeLock for the session is also released.- Specified by:
removeSession
in interfaceProject
- Overrides:
removeSession
in classLocalProject
- Throws:
IOException
-