Tabnine Logo
ProjectRoleImpl.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.atlassian.jira.security.roles.ProjectRoleImpl
constructor

Best Java code snippets using com.atlassian.jira.security.roles.ProjectRoleImpl.<init> (Showing top 9 results out of 315)

origin: com.atlassian.jira/jira-api

  public ProjectRole build()
  {
    return new ProjectRoleImpl(id, name, description);
  }
}
origin: com.atlassian.jira/jira-tests

@Override
public ProjectRole getRoleLevel()
{
  return roleLevelId == null ? null : new ProjectRoleImpl(roleLevelId, COMMENT_ROLE_NAME, COMMENT_ROLE_DESCRIPTION);
}
origin: com.atlassian.jira/jira-core

  public ProjectRole createProjectRole(Tuple tuple)
  {
    return new ProjectRoleImpl(tuple.get(QProjectRole.PROJECT_ROLE.id),
        tuple.get(QProjectRole.PROJECT_ROLE.name),
        tuple.get(QProjectRole.PROJECT_ROLE.description));
  }
}
origin: com.atlassian.jira/jira-core

private ProjectRole convertProjectRoleGVToProjectRoleObject(final GenericValue projectRoleGV) throws GenericEntityException
{
  ProjectRole role = null;
  if (projectRoleGV != null)
  {
    role = new ProjectRoleImpl(projectRoleGV.getLong(FIELD_ID), projectRoleGV.getString(PROJECT_ROLE_FIELD_NAME),
      projectRoleGV.getString(PROJECT_ROLE_FIELD_DESCRIPTION));
  }
  return role;
}
origin: com.atlassian.jira.plugins/atlassian-jira-rpc-plugin

private ProjectRole getProjectRoleFromRemoteProjectRole(RemoteProjectRole projectRole) throws RemoteException
{
  if (projectRole == null)
  {
    throw new RemoteException("RemoteProjectRole can not be null");
  }
  return new ProjectRoleImpl(projectRole.getId(), projectRole.getName(), projectRole.getDescription());
}
origin: com.atlassian.jira/jira-rest-plugin

ProjectRole projectRole = projectRoleService.createProjectRole(new ProjectRoleImpl(inputBean.getName(), description), errorCollection);
origin: com.atlassian.jira/jira-core

@RequiresXsrfCheck
protected String doExecute() throws Exception
{
  ProjectRole oldRole = getRole();
  ProjectRole role = new ProjectRoleImpl(oldRole.getId(), name, description);
  projectRoleService.updateProjectRole(role, this);
  if (getHasErrorMessages())
  {
    return ERROR;
  }
  else
  {
    return getRedirect("ViewProjectRoles.jspa");
  }
}
origin: com.atlassian.jira/jira-core

@RequiresXsrfCheck
public String doAddRole() throws Exception
{
  // validate
  validateName();
  if (invalidInput())
  {
    return ERROR;
  }
  projectRoleService.createProjectRole(new ProjectRoleImpl(name, description), this);
  if(hasAnyErrors())
  {
    return ERROR;
  }
  return getRedirect("ViewProjectRoles.jspa");
}
origin: com.atlassian.jira/jira-core

public ProjectRole addProjectRole(final ProjectRole projectRole)
{
  try
  {
    final GenericValue projectRoleGV = EntityUtils.createValue(ENTITY_NAME, MapBuilder.<String, Object>build(PROJECT_ROLE_FIELD_NAME, projectRole.getName(),
      PROJECT_ROLE_FIELD_DESCRIPTION, projectRole.getDescription()));
    return new ProjectRoleImpl(projectRoleGV.getLong(FIELD_ID), projectRoleGV.getString(PROJECT_ROLE_FIELD_NAME),
      projectRoleGV.getString(PROJECT_ROLE_FIELD_DESCRIPTION));
  }
  catch (final Exception e)
  {
    log.error("Unable to store project role, removing any partially stored entity: " + projectRole.getName(), e);
    throw new DataAccessException(e);
  }
}
com.atlassian.jira.security.rolesProjectRoleImpl<init>

Popular methods of ProjectRoleImpl

    Popular in Java

    • Parsing JSON documents to java classes using gson
    • requestLocationUpdates (LocationManager)
    • setRequestProperty (URLConnection)
    • findViewById (Activity)
    • FileNotFoundException (java.io)
      Thrown when a file specified by a program cannot be found.
    • InputStreamReader (java.io)
      A class for turning a byte stream into a character stream. Data read from the source input stream is
    • Socket (java.net)
      Provides a client-side TCP socket.
    • Calendar (java.util)
      Calendar is an abstract base class for converting between a Date object and a set of integer fields
    • JarFile (java.util.jar)
      JarFile is used to read jar entries and their associated data from jar files.
    • JFrame (javax.swing)
    • Top plugins for Android Studio
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now