Examples of IUser


Examples of com.google.enterprise.connector.dctm.dfcwrap.IUser

        || userName.equalsIgnoreCase("dm_owner")
        || userName.equalsIgnoreCase("dm_group")) {
      return userName;
    }
    try {
      IUser userObj = (IUser) session.getObjectByQualification(
          "dm_user where user_name = '" + userName + "'");
      if (userObj != null) {
        if (!Strings.isNullOrEmpty(userObj.getUserSourceAsString())
            && userObj.getUserSourceAsString().equalsIgnoreCase("ldap")) {
          String dnName = userObj.getUserDistinguishedLDAPName();
          userLoginName = IdentityUtil.getFirstDomainFromDN(dnName) + "\\"
                  + IdentityUtil.getCNFromDN(dnName);
        } else {
          userLoginName = userObj.getUserLoginName();
        }
      }
    } catch (RepositoryException e) {
      logger.finer(e.getMessage());
      logger.info("error getting user login name for: " + userName);
View Full Code Here

Examples of com.google.enterprise.connector.dctm.dfcwrap.IUser

      throws RepositoryDocumentException {
    String localNamespace = traversalManager.getLocalNamespace();
    String globalNamespace = traversalManager.getGlobalNamespace();

    try {
      IUser userObj = (IUser) session.getObjectByQualification(
          "dm_user where user_name = '" + usergroup + "'");
      if (userObj != null) {
        // TODO(srinivas) to check with Meghna about name space for users
        // if it is always global namespace. setting to global for now.
        return globalNamespace;
View Full Code Here

Examples of com.google.enterprise.connector.filenet4.filewrap.IUser

    // each and every AuthZ request.
    // TODO(tdnguyen) Refactor this method to properly handle pushSubject and
    // popSubject
    handler.pushSubject();

    IUser user = handler.getUser(identity);
    if (user == null) {
      handler.popSubject();
      return null;
    }
View Full Code Here

Examples of com.iisigroup.cap.security.model.IUser

        if (logger.isDebugEnabled()) {
            logger.debug("Security verification for user '" + username + "'");
        }

        IUser user = obtainAccount(username);

        if (user == null) {
            if (logger.isInfoEnabled()) {
                logger.info("Account " + username + " could not be found");
            }
View Full Code Here

Examples of com.openshift.client.IUser

    public static IDomain loginAndGetDomain(OpenShiftEndpoint endpoint, String openshiftServer) {
        // grab all applications
        IOpenShiftConnection connection =
                new OpenShiftConnectionFactory().getConnection(endpoint.getClientId(), endpoint.getUsername(), endpoint.getPassword(), openshiftServer);

        IUser user = connection.getUser();

        IDomain domain;
        if (endpoint.getDomain() != null) {
            domain = user.getDomain(endpoint.getDomain());
        } else {
            domain = user.getDefaultDomain();
        }

        return domain;
    }
View Full Code Here

Examples of it.hotel.model.user.IUser

  }
 
 
  protected void change(int structureId) {
   
    IUser user = userContainer.getUser();
    user.setStructureId(structureId);
    try {
      userManager.updateUser(user);
    } catch (SystemException e) {
    }
  }
View Full Code Here

Examples of it.hotel.model.user.IUser

  }
 
 
  public ModelAndView list(HttpServletRequest req, HttpServletResponse resp) {
   
    IUser user = userContainer.getUser();
    Structure structure = (Structure) structureManager.get(user.getStructureId());
    ArrayList<Structure> hotels = new ArrayList<Structure>();
    hotels.add(structure);
    if (userContainer.getUser().getRole().hasPermission("SUPERUSER"))
    {
      return new ModelAndView("hotel.structure.list.admin","elements", hotels);
View Full Code Here

Examples of it.hotel.model.user.IUser

    HttpSession session = this.pageContext.getSession();
    try {
      boolean isAuthorized = false;
      WebApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(pageContext.getServletContext());
      UserContainer container = (UserContainer) context.getBean("userContainer");
      IUser user = container.getUser();
      Role role = user.getRole();
      if (role != null) {
        isAuthorized = (role.hasPermission(this._permission) ||
            role.hasPermission(Permission.SUPERUSER) || role.getName().equalsIgnoreCase(_permission));
      }
      if (isAuthorized) {
View Full Code Here

Examples of it.hotel.model.user.IUser

    WebApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(pageContext.getServletContext());
    UserContainer container = (UserContainer) context.getBean("userContainer");
    IStructureManager structureManager = (IStructureManager) context.getBean("structureRawManager");
    IBookingManager bookingManager = (IBookingManager) context.getBean("bookingRawManager");
      try {
        IUser user = container.getUser();
        Structure structure = (Structure) structureManager.get(user.getStructureId());
        if (structure != null){         
          Collection<Room> rooms = bookingManager.getVacantRoomsForStructure(structure, CalendarUtils.GetToday(), CalendarUtils.GetToday());
          pageContext.getOut().print(rooms.size());
        }
       
View Full Code Here

Examples of it.hotel.model.user.IUser

   * @return
   */
  public ModelAndView list (HttpServletRequest req, HttpServletResponse resp){
    Map allPrices = new HashMap();
    Typology typology=null;
    IUser user = userContainer.getUser();
    ArrayList<Typology> listTypology = (ArrayList<Typology>)typologyManager.getTypologiesFromStructure(user.getStructureId());
    for(int i=0;i<listTypology.size(); i++){
      if(listTypology.get(i).getBeds()==0){
      listTypology.remove(i);
    }
      }
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.