Package no.ugland.utransprod.service

Examples of no.ugland.utransprod.service.ApplicationUserManager


    /**
     * Finner alle brukere som ikke er gruppebrukere
     * @return brukere
     */
    public List<ApplicationUser> getApplicationUserList() {
        ApplicationUserManager applicationUserManager = (ApplicationUserManager) ModelUtil
                .getBean("applicationUserManager");
        return applicationUserManager.findAllNotGroup();
    }
View Full Code Here


      final List<ProductAreaGroup> aProductAreaGroupList,
      final ProductAreaGroup userProductAreaGroup) {
    if (userProductAreaGroup != null) {
      aProductAreaGroupList.add(userProductAreaGroup);
    }
    ApplicationUserManager applicationUserManager = (ApplicationUserManager) ModelUtil
        .getBean(ApplicationUserManager.MANAGER_NAME);
    applicationUserManager.lazyLoad(applicationUser,
        new LazyLoadEnum[][] { { LazyLoadEnum.USER_PRODUCT_AREA_GROUPS,
            LazyLoadEnum.NONE } });
    if (applicationUser.getUserProductAreaGroups() != null
        && applicationUser.getUserProductAreaGroups().size() != 0) {
      Set<UserProductAreaGroup> groups = applicationUser
View Full Code Here

  public static List<String> getFirstNameList() {
    if (firstNameList == null) {
      firstNameList = new ArrayList<String>();
      lastNameList = new ArrayList<String>();
      ApplicationUserManager applicationUserManager = (ApplicationUserManager) ModelUtil
          .getBean("applicationUserManager");
      List<ApplicationUser> users = applicationUserManager
          .findAllNotGroup();
      if (users != null) {
        for (ApplicationUser user : users) {
          firstNameList.add(user.getFirstName());
          lastNameList.add(user.getLastName());
View Full Code Here

  public static List<String> getLastNameList() {
    if (lastNameList == null) {
      firstNameList = new ArrayList<String>();
      lastNameList = new ArrayList<String>();
      ApplicationUserManager applicationUserManager = (ApplicationUserManager) ModelUtil
          .getBean("applicationUserManager");
      List<ApplicationUser> users = applicationUserManager
          .findAllNotGroup();
      if (users != null) {
        for (ApplicationUser user : users) {
          firstNameList.add(user.getFirstName());
          lastNameList.add(user.getLastName());
View Full Code Here

  @SuppressWarnings("unchecked")
  public ApplicationParamViewHandler(String aHeading,
      final OverviewManager aOverviewManager, UserType aUserType) {
    super(aHeading, aOverviewManager, aUserType, true);
    viewHandlerExt = this;
    ApplicationUserManager applicationUserManager = (ApplicationUserManager) ModelUtil
        .getBean("applicationUserManager");
    userNameList = applicationUserManager.findAllNamesNotGroup();
    listCollies = new ArrayListModel();
    listTakstolArticles = new ArrayListModel();
    listColliesSelectionList = new SelectionInList((ListModel) listCollies);
    listTakstolArticleSelectionList = new SelectionInList(
        (ListModel) listTakstolArticles);
View Full Code Here

      PresentationModel presentationModel) {
    if (!search) {
      if (login.getApplicationUser() != null
          && ((DeviationModel) presentationModel.getBean())
              .getObject().getDeviationId() == null) {
        ApplicationUserManager applicationUserManager = (ApplicationUserManager) ModelUtil
            .getBean("applicationUserManager");
        applicationUserManager
            .refreshObject(login.getApplicationUser());

        userIsSet = true;
        presentationModel.getBufferedModel(
            DeviationModel.PROPERTY_OWN_FUNCTION).setValue(
View Full Code Here

      PresentationModel presentationModel, boolean search) {
    if (!search) {
      if (login.getApplicationUser() != null
          && ((DeviationModel) presentationModel.getBean())
              .getObject().getDeviationId() == null) {
        ApplicationUserManager applicationUserManager = (ApplicationUserManager) ModelUtil
            .getBean("applicationUserManager");
        applicationUserManager
            .refreshObject(login.getApplicationUser());

        if (login.getApplicationUser().getProductArea() != null) {

          presentationModel.setBufferedValue(
View Full Code Here

TOP

Related Classes of no.ugland.utransprod.service.ApplicationUserManager

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.