|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface describes operations that can be made on a Project.
| Method Summary | |
void |
activateProject(java.lang.String name,
java.lang.String activeName)
Activates a project by copying it from the dynamic directory to the active directory and also changing the name. |
void |
closeProject(java.lang.String name)
Moves a project from active to closed state. |
Scale[] |
createStandardScales()
Generates the standard Scales ACR, CCR and DCR. |
void |
deleteProject(java.lang.String name,
int state)
Deletes a project permanently. |
void |
duplicateProject(java.lang.String name,
java.lang.String newname)
Duplicates a project in dynamic state. |
boolean |
isUniqueProjectName(java.lang.String name,
int state)
Checks it a project name is unique within a specific project state domain. |
java.util.Hashtable |
listActiveProjects()
Used by the client to discover available projects. |
java.util.Hashtable |
listProjects(int state)
Lists projects in a specific state. |
java.util.Hashtable |
listProjectsAndTests(int state)
Lists projects and tests in a specific state. |
Project |
newProject(java.lang.String name)
Creates a new project. |
Project |
openProject(java.lang.String name)
Opens a project that is in dynamic state. |
Scale[] |
openScales()
Opens scales from a scale.conf file. |
void |
reactivateProject(java.lang.String name)
Reactivates a project by copying it from the closed directory. |
void |
renameProject(java.lang.String name,
java.lang.String newname)
Renames a project in dynamic state. |
void |
saveProject(Project project)
Saves a project object to disk. |
void |
saveScales(Scale[] scales)
Saves Scale objects in a stream file named scale.conf |
| Method Detail |
public Scale[] createStandardScales()
public Scale[] openScales()
throws ProjectOperationException
ProjectOperationException - if there was an unhandled exception while performing the operation.
public void saveScales(Scale[] scales)
throws ProjectOperationException
scales - An array of scales.
ProjectOperationException - if there was an unhandled exception while performing the operation.
public java.util.Hashtable listProjectsAndTests(int state)
throws ProjectOperationException
state - List projects in this state. State identifiers are defined in audiojury.domain.Project
ProjectOperationException - if there was an unhandled exception while performing the operation.audiojury.domain.Project#
public java.util.Hashtable listProjects(int state)
throws ProjectOperationException
state - List projects in this state. State identifiers are defined in Project.
ProjectOperationException - if there was an unhandled exception while performing the operation.audiojury.domain.Project#
public java.util.Hashtable listActiveProjects()
throws ProjectOperationException
ProjectOperationException - if there was an unhandled exception while performing the operation.
public boolean isUniqueProjectName(java.lang.String name,
int state)
throws ProjectOperationException
name - A name candidate.state - The project state domain to check against. Project states are
defined in audiojury.domain.Project
ProjectOperationException - if there was an unhandled exception while performing the operation.
public void duplicateProject(java.lang.String name,
java.lang.String newname)
throws ProjectOperationException,
NotUniqueNameException
name - The name of the project to duplicate.newname - The name of the copy that will be created.
ProjectOperationException - if there was an unhandled exception while performing the operation.
NotUniqueNameException - if the proposed name is not unique.
public void renameProject(java.lang.String name,
java.lang.String newname)
throws ProjectOperationException,
NotUniqueNameException
name - The current name of the project.newname - The new desired name of the project.
ProjectOperationException - if there was an unhandled exception while performing the operation.
NotUniqueNameException - if the proposed name is not unique.
public void closeProject(java.lang.String name)
throws ProjectOperationException
name - The name of the project to close. The project must
be in active state for the closure to be possible.
ProjectOperationException - if there was an unhandled exception while performing the operation.
public void reactivateProject(java.lang.String name)
throws ProjectOperationException
name - The name of the project to reactivate.
ProjectOperationException - if there was an unhandled exception while performing the operation.
public void activateProject(java.lang.String name,
java.lang.String activeName)
throws ProjectOperationException
name - The name of the project to activateactiveName - The name the project should have in active state.
ProjectOperationException - if there was an unhandled exception while performing the operation.
public void deleteProject(java.lang.String name,
int state)
throws ProjectOperationException
name - Name of the project to rename.state - In which state to look for the project.
ProjectOperationException - if there was an unhandled exception while performing the operation.
public void saveProject(Project project)
throws ProjectOperationException
project - A project object to save.
ProjectOperationException - if there was an unhandled exception while performing the operation.
public Project openProject(java.lang.String name)
throws ProjectOperationException,
NoProjectFoundException
name - The name of the project.
ProjectOperationException - if there was an unhandled exception while performing the operation.
NoProjectFoundException - if the proposed name is not unique.
public Project newProject(java.lang.String name)
throws ProjectOperationException,
NotUniqueNameException
name - The desired name of the new project.
ProjectOperationException - if there was an unhandled exception while performing the operation.
NotUniqueNameException - if the proposed name is not unique.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||