@Service(value="CustomProjectModificationService") @Transactional public class CustomProjectModificationServiceImpl extends Object implements CustomProjectModificationService
| Constructor and Description |
|---|
CustomProjectModificationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.squashtest.tm.domain.project.Project |
addProjectAndCopySettingsFromTemplate(org.squashtest.tm.domain.project.Project newProject,
long templateId,
boolean copyAssignedUsers,
boolean copyCustomFieldsSettings,
boolean copyBugtrackerSettings,
boolean copyTestAutomationSettings,
boolean copyInfolists,
boolean copyMilestone)
Will persist the new Project and add settings copied from a given ProjectTemplate.
|
void |
deleteProject(long projectId) |
List<org.squashtest.tm.domain.project.GenericProject> |
findAllICanManage() |
List<org.squashtest.tm.domain.project.Project> |
findAllReadable() |
public CustomProjectModificationServiceImpl()
@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')") public void deleteProject(long projectId)
deleteProject in interface CustomProjectModificationService@PostFilter(value="hasPermission(filterObject, \'READ\') or hasRole(\'ROLE_ADMIN\')") @Transactional(readOnly=true) public List<org.squashtest.tm.domain.project.Project> findAllReadable()
findAllReadable in interface CustomProjectFinder@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')")
public org.squashtest.tm.domain.project.Project addProjectAndCopySettingsFromTemplate(org.squashtest.tm.domain.project.Project newProject,
long templateId,
boolean copyAssignedUsers,
boolean copyCustomFieldsSettings,
boolean copyBugtrackerSettings,
boolean copyTestAutomationSettings,
boolean copyInfolists,
boolean copyMilestone)
CustomProjectModificationServiceaddProjectAndCopySettingsFromTemplate in interface CustomProjectModificationServicenewProject - : the new Project entity to persisttemplateId - : the id of the ProjectTemplate to copy the settings fromcopyAssignedUsers - : whether to copy the Template's assigned Users or notcopyCustomFieldsSettings - : whether to copy the Template's CustomFields settings or notcopyBugtrackerSettings - : whether to copy the Template's bug-tracker settings or notcopyTestAutomationSettings - : whether to copy the Template's automation settings or notcopyInfolists - : whether to use the Template's custom categories/natures/typesProjectProjectManagerService#addProjectAndCopySettingsFromTemplate(Project, long, boolean, boolean, boolean,
boolean)public List<org.squashtest.tm.domain.project.GenericProject> findAllICanManage()
findAllICanManage in interface CustomProjectFinderCopyright © 2010-2015 Henix, henix.fr. All Rights Reserved.