Package com.polarion.alm.projects
Interface IProjectManagementJobUnit
- All Superinterfaces:
IJobUnit
IJobUnit
which allows to create, delete, unmark, move and mark projects.
If multiple operations are requested, they are executed in the following order: delete, create, unmark, move, mark.
- Since:
- 3.3.0
- Version:
- $Revision$ $Date$
- Author:
- Stepan Roh
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
job name forIJobUnitRepository.getJobUnitFactory(String)
Fields inherited from interface com.polarion.platform.jobs.IJobUnit
UNKNOWN_WORK_LENGTH
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setCreate
(boolean create) Job parameter: whether to create the project first.void
setDelete
(boolean delete) Job parameter: whether to delete the project.void
setLocation
(ILocation location) Job parameter: repository location of project to be marked.void
setMark
(boolean mark) Job parameter: whether to mark the project (always happens after unmark if that was requested).void
setMoveFolder
(boolean moveFolder) Job parameter: whether to move project's folder after unmark.void
setProject
(String projectId) Required job parameter: id of project to create/delete/mark/unmark.void
setTemplateId
(String templateId) Job parameter: project template id.void
setTemplateParameters
(Map<String, String> parameters) Job parameter: project template parameters.void
setUnmark
(boolean unmark) Job parameter: whether to unmark the project (always happens after create if that was requested).Methods inherited from interface com.polarion.platform.jobs.IJobUnit
activate, getCreator, getJob, getLogger, getName, getPriority, getScope, getWorkLength, run, setJob, setLogger, setScope, setWorkDir
-
Field Details
-
JOB_NAME
job name forIJobUnitRepository.getJobUnitFactory(String)
- See Also:
-
-
Method Details
-
setProject
Required job parameter: id of project to create/delete/mark/unmark.- Parameters:
projectId
- project id (notnull
)
-
getProject
- Returns:
- project id
- Since:
- 3.23.10
-
setLocation
Job parameter: repository location of project to be marked.Required if
setMark(boolean)
istrue
, ignored otherwise.- Parameters:
location
- project location (notnull
)
-
setCreate
void setCreate(boolean create) Job parameter: whether to create the project first.- Parameters:
create
-true
to create the project first,false
(default) otherwise- Since:
- 3.23.10
-
setDelete
void setDelete(boolean delete) Job parameter: whether to delete the project.- Parameters:
delete
-true
to delete the project,false
(default) otherwise- Since:
- 3.23.10
-
setUnmark
void setUnmark(boolean unmark) Job parameter: whether to unmark the project (always happens after create if that was requested).- Parameters:
unmark
-true
to unmark the project,false
(default) otherwise
-
setMark
void setMark(boolean mark) Job parameter: whether to mark the project (always happens after unmark if that was requested).- Parameters:
mark
-true
to mark the project,false
(default) otherwise
-
setMoveFolder
void setMoveFolder(boolean moveFolder) Job parameter: whether to move project's folder after unmark.Is done only if both
setMark(boolean)
andsetUnmark(boolean)
aretrue
, ignored otherwise.- Parameters:
moveFolder
-true
to move the project's folder,false
(default) otherwise
-
setTemplateId
Job parameter: project template id.Not part of job descriptor.
- Parameters:
templateId
- The template's ID ornull
(default)
-
setTemplateParameters
Job parameter: project template parameters.Not part of job descriptor.
- Parameters:
parameters
- template parameters ornull
(default)
-