com.atlassian.jira.bc.project
Interface ProjectService

All Known Implementing Classes:
DefaultProjectService

public interface ProjectService


Field Summary
static String PROJECT_DESCRIPTION
          The default name of HTML fields containing a Project's description.
static String PROJECT_KEY
          The default name of HTML fields containing a Project's key.
static String PROJECT_LEAD
          The default name of HTML fields containing a Project's lead.
static String PROJECT_NAME
          The default name of HTML fields containing a Project's name.
static String PROJECT_URL
          The default name of HTML fields containing a Project's URL.
 
Method Summary
 boolean isValidAllProjectData(JiraServiceContext serviceContext, String name, String key, String lead, String url, Long assigneeType)
          Will validate all project fields setting the appropriate errors in the JiraServiceContext if any errors occur.
 boolean isValidRequiredProjectData(JiraServiceContext serviceContext, String name, String key, String lead)
          Will validate the fields required for creating a project and setting the appropriate validation errors in the JiraServiceContext if any errors occur.
 

Field Detail

PROJECT_NAME

static final String PROJECT_NAME
The default name of HTML fields containing a Project's name. Validation methods on this service (isValidAllProjectData) will return an ErrorCollection with error messages keyed to this field name.

See Also:
Constant Field Values

PROJECT_KEY

static final String PROJECT_KEY
The default name of HTML fields containing a Project's key. Validation methods on this service (isValidAllProjectData) will return an ErrorCollection with error messages keyed to this field name.

See Also:
Constant Field Values

PROJECT_LEAD

static final String PROJECT_LEAD
The default name of HTML fields containing a Project's lead. Validation methods on this service (isValidAllProjectData) will return an ErrorCollection with error messages keyed to this field name.

See Also:
Constant Field Values

PROJECT_URL

static final String PROJECT_URL
The default name of HTML fields containing a Project's URL. Validation methods on this service (isValidAllProjectData) will return an ErrorCollection with error messages keyed to this field name.

See Also:
Constant Field Values

PROJECT_DESCRIPTION

static final String PROJECT_DESCRIPTION
The default name of HTML fields containing a Project's description. Validation methods on this service (isValidAllProjectData) will return an ErrorCollection with error messages keyed to this field name.

See Also:
Constant Field Values
Method Detail

isValidAllProjectData

boolean isValidAllProjectData(JiraServiceContext serviceContext,
                              String name,
                              String key,
                              String lead,
                              String url,
                              Long assigneeType)
Will validate all project fields setting the appropriate errors in the JiraServiceContext if any errors occur.

Parameters:
serviceContext - containing the errorCollection that will be populated with any validation errors that are encountered
name - the name of the project @NotNull
key - the key of the project @NotNull
lead - the project lead @NotNull
url - 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

boolean isValidRequiredProjectData(JiraServiceContext serviceContext,
                                   String name,
                                   String key,
                                   String lead)
Will validate the fields required for creating a project and setting the appropriate validation errors in the JiraServiceContext if any errors occur.

Parameters:
serviceContext - containing the errorCollection that will be populated with any validation errors that are encountered
name - the name of the project @NotNull
key - the key of the project @NotNull
lead - the project lead @NotNull
Returns:
true if project data is valid, false otherwise


Copyright © 2002-2007 Atlassian. All Rights Reserved.