Codota Logo
ProjectService.getMaximumNameLength
Code IndexAdd Codota to your IDE (free)

How to use
getMaximumNameLength
method
in
com.atlassian.jira.bc.project.ProjectService

Best Java code snippets using com.atlassian.jira.bc.project.ProjectService.getMaximumNameLength (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: com.atlassian.jira/jira-core

public int getMaxNameLength()
{
  return projectService.getMaximumNameLength();
}
origin: com.atlassian.jira/jira-core

private void validate(final String name, final String key, final ErrorCollection errors, final I18nHelper i18nBean, boolean forupdate)
{
  if (!TextUtils.stringSet(name))
  {
    errors.addError(PROJECT_NAME, i18nBean.getText("admin.errors.must.specify.a.valid.project.name"));
  }
  else if (name.length() > projectService.getMaximumNameLength())
  {
    errors.addError(PROJECT_NAME, i18nBean.getText("admin.errors.project.name.too.long", projectService.getMaximumNameLength()));
  }
  else if (name.length() < MIN_NAME_LENGTH)
  {
    errors.addError(PROJECT_NAME, i18nBean.getText("admin.errors.project.name.too.short", MIN_NAME_LENGTH));
  } else {
    Project project = projectManager.getProjectObjByName(name);
    if (project != null)
    {
      /*
       * If project with that name already exists it is a bad name unless we are updating and
       * we found the same project that we are updating.
       */
      if (!(forupdate && isTheSameProject(key, project)))
      {
        errors.addError(PROJECT_NAME, i18nBean.getText("admin.errors.project.with.that.name.already.exists"));
      }
    }
  }
}
origin: com.atlassian.jira/jira-core

jqlAutocompleteDisabled = applicationProperties.getOption(APKeys.JIRA_JQL_AUTOCOMPLETE_DISABLED);
maximumAuthenticationAttemptsAllowed = applicationProperties.getDefaultBackedString(APKeys.JIRA_MAXIMUM_AUTHENTICATION_ATTEMPTS_ALLOWED);
maximumLengthProjectNames = String.valueOf(projectService.getMaximumNameLength());
maximumLengthProjectKeys = String.valueOf(projectService.getMaximumKeyLength());
showContactAdministratorsForm = applicationProperties.getOption(APKeys.JIRA_SHOW_CONTACT_ADMINISTRATORS_FORM);
com.atlassian.jira.bc.projectProjectServicegetMaximumNameLength

Javadoc

Used to retrieve the maximum length allowed for new project names.

Popular methods of ProjectService

  • getProjectByKey
    Used to retrieve a com.atlassian.jira.project.Project object by key. This method returns a com.atlas
  • deleteProject
    Deletes the project provided by the deleteProjectValidationResult. There's a number of steps involve
  • getProjectById
    Used to retrieve a com.atlassian.jira.project.Project object by id. This method returns a com.atlass
  • getProjectByKeyForAction
    Used to retrieve a com.atlassian.jira.project.Project object by key providing the user can perform t
  • updateProject
    Using the validation result from #validateUpdateProject(User,String,String,String,String,String,Long
  • validateDeleteProject
    Validation to delete a project is quite straightforward. The user must have global admin rights and
  • validateUpdateProject
    Validates updating a project's details. The project is looked up by the key provided. If no project
  • createProject
    Using the validation result from #validateCreateProject(ApplicationUser,ProjectCreationData) a new p
  • getAllProjectsForAction
    Used to retrieve a list of com.atlassian.jira.project.Project objects. This method returns a com.atl
  • getProjectByIdForAction
    Used to retrieve a com.atlassian.jira.project.Project object by id providing the user can perform th
  • updateProjectSchemes
    Updates the project schemes for a particular project, given a validation result and project to updat
  • validateCreateProject
    This method needs to be called before creating a project to ensure all parameters are correct. There
  • updateProjectSchemes,
  • validateCreateProject,
  • validateUpdateProjectSchemes,
  • getAllProjects,
  • getMaximumKeyLength,
  • isValidProjectKey,
  • updateProjectType

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • addToBackStack (FragmentTransaction)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Path (java.nio.file)
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now