Package com.atlassian.crowd.embedded.api

Examples of com.atlassian.crowd.embedded.api.User


  @Override
  protected String doExecute() throws Exception {
    log.debug("Entering doExecute");
    String loggedUserName = getLoggedUserName();
    User admin = UserUtils.getUser("admin");
    userName = loggedUserName != null ? loggedUserName : admin.getDisplayName();
    return SUCCESS;
  }
View Full Code Here


  public String getUserName() {
    return userName;
  }

  public String getLoggedUserName() {
    User loggedInUser = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser();
    return loggedInUser == null ? null : loggedInUser.getDisplayName();
  }
View Full Code Here

  }

  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

    return ComponentAccessor.getUserManager().getUser(userName);
  }

  @Nullable
  public static String getUserNameByKey(@Nullable String userKey) {
    User user = getUserByKey(userKey);
    return user == null ? null : user.getName();
  }
View Full Code Here

    public String getUserKey() {
      return myUserKey;
    }

    public void setUserName(@Nullable String userName) {
      User user = StructureUtil.getUserByName(userName);
      myUserKey = StructureUtil.getUserKey(user);
    }
View Full Code Here

   
    }
 
  public String getCustomFieldNameFromId(String token, String fieldId) throws RemoteException
  {
        User user = tokenManager.retrieveUser(token);
   
    RemoteField[] userRemoteFieldArray = adminService.getCustomFields(user);
   
    String userCustomFieldName = "FALSE";
   
View Full Code Here

  }

  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

    return ComponentAccessor.getUserManager().getUser(userName);
  }

  @Nullable
  public static String getUserNameByKey(@Nullable String userKey) {
    User user = getUserByKey(userKey);
    return user == null ? null : user.getName();
  }
View Full Code Here

    public String getUserKey() {
      return myUserKey;
    }

    public void setUserName(@Nullable String userName) {
      User user = StructureUtil.getUserByName(userName);
      myUserKey = StructureUtil.getUserKey(user);
    }
View Full Code Here

  }

  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

Related Classes of com.atlassian.crowd.embedded.api.User

Copyright © 2018 www.massapicom. 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.