Tabnine Logo
FieldScreenTab.getPosition
Code IndexAdd Tabnine to your IDE (free)

How to use
getPosition
method
in
com.atlassian.jira.issue.fields.screen.FieldScreenTab

Best Java code snippets using com.atlassian.jira.issue.fields.screen.FieldScreenTab.getPosition (Showing top 6 results out of 315)

origin: com.atlassian.jira/jira-core

public boolean equals(Object o)
{
  if (this == o) return true;
  if (!(o instanceof FieldScreenTab)) return false;
  final FieldScreenTab fieldScreenTab = (FieldScreenTab) o;
  if (position != fieldScreenTab.getPosition()) return false;
  if (id != null ? !id.equals(fieldScreenTab.getId()) : fieldScreenTab.getId() != null) return false;
  if (name != null ? !name.equals(fieldScreenTab.getName()) : fieldScreenTab.getName() != null) return false;
  return true;
}
origin: com.atlassian.jira/jira-rest-plugin

/**
 * Deletes tab to give screen
 *
 * @param screenId id of screen
 * @param tabId id of tab
 * @return A response containing no content
 *
 * @response.representation.201.doc
 *       Successfully deleted tab
 *
 * @response.representation.401.doc
 *      Returned if you do not have permissions
 *
 * @response.representation.400.doc
 *      Returned if screen or tab does not exist
 */
@DELETE
@WebSudoRequired
@Path ("{screenId}/tabs/{tabId}")
public Response deleteTab(@PathParam ("screenId") Long screenId, @PathParam ("tabId") Long tabId)
{
  administerPermissionCheck();
  final FieldScreen fieldScreen = getFieldScreen(screenId);
  final FieldScreenTab tabById = getTabById(fieldScreen, tabId);
  fieldScreen.removeTab(tabById.getPosition());
  return Response.status(Response.Status.NO_CONTENT).cacheControl(never()).build();
}
origin: com.atlassian.jira.plugins/jira-workflow-sharing-plugin

tabs.add(new ScreenTabInfo(tab.getId(),tab.getName(),tab.getPosition(),tabItems));
origin: com.atlassian.jira/jira-rest-plugin

fieldScreen.moveFieldScreenTabToPosition(tabById.getPosition(), pos);
fieldScreen.store();
origin: com.atlassian.jira/jira-core

public void createFieldScreenTab(FieldScreenTab fieldScreenTab)
{
  GenericValue fieldScreenGV = ofBizDelegator.createValue(FIELD_SCREEN_TAB_ENTITY_NAME,
      MapBuilder.<String, Object>newBuilder().add("name", fieldScreenTab.getName()).add("sequence", (long)fieldScreenTab.getPosition())
          .add("fieldscreen", fieldScreenTab.getFieldScreen().getId()).toMap());
  fieldScreenTab.setGenericValue(fieldScreenGV);
}
origin: com.atlassian.jira/jira-rest-plugin

private Field addFieldToScreen(final Long screenId, final Long tabId, final String fieldId)
{
  final FieldScreenTab tab = getTabById(getFieldScreen(screenId), tabId);
  final AddFieldToScreenUtil addFieldToScreenUtil = new AddFieldToScreenUtilImpl(jiraAuthenticationContext, fieldManager, fieldScreenManager);
  addFieldToScreenUtil.setFieldScreenId(screenId);
  addFieldToScreenUtil.setTabPosition(tab.getPosition());
  addFieldToScreenUtil.setFieldId(new String[] { fieldId });
  addFieldToScreenUtil.setFieldPosition("" + (tab.getFieldScreenLayoutItems().size() + 1));
  final com.atlassian.jira.util.ErrorCollection errorCollection = addFieldToScreenUtil.validate();
  if (errorCollection.hasAnyErrors())
  {
    throwWebException(errorCollection);
  }
  addFieldToScreenUtil.execute();
  return fieldManager.getField(fieldId);
}
com.atlassian.jira.issue.fields.screenFieldScreenTabgetPosition

Popular methods of FieldScreenTab

  • getId
  • getFieldScreen
  • getFieldScreenLayoutItem
  • getFieldScreenLayoutItems
  • getName
  • setPosition
  • addFieldScreenLayoutItem
  • setFieldScreen
  • getGenericValue
  • isContainsField
  • moveFieldScreenLayoutItemFirst
  • moveFieldScreenLayoutItemLast
  • moveFieldScreenLayoutItemFirst,
  • moveFieldScreenLayoutItemLast,
  • moveFieldScreenLayoutItemToPosition,
  • remove,
  • removeFieldScreenLayoutItem,
  • rename,
  • setGenericValue,
  • setName,
  • store

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • startActivity (Activity)
  • setScale (BigDecimal)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • From CI to AI: The AI layer in your organization
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