Examples of JiraAuthenticationContext


Examples of com.atlassian.jira.security.JiraAuthenticationContext

  public static String debugAction(ActionDescriptor action) {
    return action == null ? "<null>" : action.getName() + "(" + action.getId() + ")";
  }

  public static String getTextInCurrentUserLocale(String key, Object... parameters) {
    JiraAuthenticationContext context = ComponentAccessor.getJiraAuthenticationContext();
    if (context == null) logger.warn("No JIRA auth context: maybe it is a plugin system 2 plugin now? Text will be formatted in the JIRA default locale.");
    User user = context == null ? null : context.getLoggedInUser();
    return getText(null, user, key, parameters);
  }
View Full Code Here

Examples of com.atlassian.jira.security.JiraAuthenticationContext

  public static String debugAction(ActionDescriptor action) {
    return action == null ? "<null>" : action.getName() + "(" + action.getId() + ")";
  }

  public static String getTextInCurrentUserLocale(String key, Object... parameters) {
    JiraAuthenticationContext context = ComponentAccessor.getJiraAuthenticationContext();
    if (context == null) logger.warn("No JIRA auth context: maybe it is a plugin system 2 plugin now? Text will be formatted in the JIRA default locale.");
    User user = context == null ? null : context.getLoggedInUser();
    return getText(null, user, key, parameters);
  }
View Full Code Here

Examples of com.atlassian.jira.security.JiraAuthenticationContext

  public static String debugAction(ActionDescriptor action) {
    return action == null ? "<null>" : action.getName() + "(" + action.getId() + ")";
  }

  public static String getTextInCurrentUserLocale(String key, Object... parameters) {
    JiraAuthenticationContext context = ComponentAccessor.getJiraAuthenticationContext();
    if (context == null) logger.warn("No JIRA auth context: maybe it is a plugin system 2 plugin now? Text will be formatted in the JIRA default locale.");
    User user = context == null ? null : context.getLoggedInUser();
    return getText(null, user, key, parameters);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.