com.atlassian.jira.bc.project
Class DefaultProjectService
java.lang.Object
com.atlassian.jira.bc.project.DefaultProjectService
- All Implemented Interfaces:
- ProjectService
public class DefaultProjectService
- extends Object
- implements ProjectService
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultProjectService
public DefaultProjectService(JiraAuthenticationContext jiraAuthenticationContext,
ProjectManager projectManager,
ApplicationProperties applicationProperties)
isValidAllProjectData
public boolean isValidAllProjectData(JiraServiceContext serviceContext,
String name,
String key,
String lead,
String url,
Long assigneeType)
- Description copied from interface:
ProjectService
- Will validate all project fields setting the appropriate errors in the
JiraServiceContext
if any errors occur.
- Specified by:
isValidAllProjectData
in interface ProjectService
- Parameters:
serviceContext
- containing the errorCollection that will be populated with any validation errors that are
encounteredname
- the name of the project @NotNullkey
- the key of the project @NotNulllead
- the project lead @NotNullurl
- the project URL (optional)assigneeType
- the default assignee type (optional - only appears on some forms)
- Returns:
- true if project data is valid, false otherwise
isValidRequiredProjectData
public boolean isValidRequiredProjectData(JiraServiceContext serviceContext,
String name,
String key,
String lead)
- Description copied from interface:
ProjectService
- Will validate the fields required for creating a project and setting the appropriate validation errors in the
JiraServiceContext
if any errors occur.
- Specified by:
isValidRequiredProjectData
in interface ProjectService
- Parameters:
serviceContext
- containing the errorCollection that will be populated with any validation errors that are
encounteredname
- the name of the project @NotNullkey
- the key of the project @NotNulllead
- the project lead @NotNull
- Returns:
- true if project data is valid, false otherwise
Copyright © 2002-2007 Atlassian. All Rights Reserved.