Examples of UserInfo


Examples of model.UserInfo

       
        try {
           
            in = new ObjectInputStream(clientSocket.getInputStream());
            // das Benutzerinfo Objeckt wird erstellt ohne den Namen, der Name wird spaeter hinzugefuegt
            ui = new UserInfo(null, null, new ObjectOutputStream(clientSocket.getOutputStream()), this);
           
        } catch (IOException ex) {
            Logger.getLogger(ClientThread.class.getName()).log(Level.SEVERE, null, ex);
        }
       
View Full Code Here

Examples of net.caece.pri.hibernate.vo.UserInfo

        }
    }

    public void onCreate() {
       
        UserInfo userInfo = (UserInfo)Sessions.getCurrent().getAttribute("userInfo");
        if(userInfo != null){
            operateBy = userInfo.getUserName();
        }

    }
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.UserInfo

        // Remove the item from inventory.
    activeChar.destroyItem("Consume", item.getObjectId(), 1, null, false);

    // Broadcast the changes to the char and all those nearby.
    UserInfo ui = new UserInfo(activeChar);
    activeChar.broadcastPacket(ui);
  }
View Full Code Here

Examples of net.sourceforge.jwbf.core.contentRep.Userinfo

        performAction(a);
        ui = a;
        loginChangeUserInfo = false;
      } catch (VersionException e) {
        if (login != null && login.getUserName().length() > 0) {
          ui = new Userinfo() {

            public String getUsername() {
              return login.getUserName();
            }

            public Set<String> getRights() {
              return emptySet;
            }

            public Set<String> getGroups() {
              return emptySet;
            }
          };
        } else {
          ui = new Userinfo() {

            public String getUsername() {
              return "unknown";
            }
View Full Code Here

Examples of org.apache.agila.services.user.UserInfo

        assertNotNull( "List of users should not be null", allUsers );
        assertTrue( "List of users should be greater or equal to 10", allUsers.size() >= 10 );
    }

    public void testSaveUser() {
        UserInfo userInfo = new UserInfo();
        userInfo.setUserName( "James" );
        userInfo.setUserPassword( "Gosling" );
        userInfo.setUserPrincipal( "User Principal" );
        userInfo.setAdmin( true );

        UserID userID = dao.addUser( userInfo );

        // Modify the user info then update db
        userInfo.setUserID( userID );
        userInfo.setUserPassword( "Arnold" );
        userInfo.setUserPrincipal( "Scott McNealy" );
        userInfo.setAdmin( false );

        dao.saveUser( userInfo );

        // Verify that the info are indeed saved in the db
        userInfo = dao.getUserInfo( userInfo.getUserID() );
        assertEquals( "Arnold", userInfo.getUserPassword() );
        assertEquals( "Scott McNealy", userInfo.getUserPrincipal() );
        assertEquals( false, userInfo.isAdmin() );
    }
View Full Code Here

Examples of org.apache.cocoon.portal.profile.impl.UserInfo

    public UserInfo getUserInfo(final String portalName, final String layoutKey)
    throws Exception {
        final Map objectModel = ContextHelper.getObjectModel(this.context);
        final User user = ApplicationUtil.getUser(objectModel);

        final UserInfo info = new PortalUserInfo(portalName, layoutKey, user);

        info.setUserName(user.getId());
        info.setGroup((String)user.getAttribute("group"));
        final PortalApplication app =
                            (PortalApplication)ApplicationUtil.getApplication(objectModel);
        info.setConfigurations(app.getPortalConfiguration());

        return info;
    }
View Full Code Here

Examples of org.apache.photark.security.authorization.UserInfo

            // deleting from other lists
            deleteMutuallyExclusiveLists(user.getUserId(), listName);

            Node users = (Node)session.getItem("/" + USER_STORE + "/" + USER_LISTS + "/" + listName);
            Node userNode;
            UserInfo userInfo = user.getUserInfo();
            if (users != null) {
                if (users.hasNode(JCREncoder.toJCRFormat(user.getUserId()))) {
                    users.getNode(JCREncoder.toJCRFormat(user.getUserId()));
                } else {
                    users.addNode(JCREncoder.toJCRFormat(user.getUserId()));
View Full Code Here

Examples of org.beangle.ems.web.tags.component.Userinfo

  public TagModel getUserinfo() {
    TagModel model = models.get(Userinfo.class);
    if (null == model) {
      model = new TagModel(stack) {
        protected Component getBean() {
          return new Userinfo(stack, authorityManager);
        }
      };
      models.put(Userinfo.class, model);
    }
    return model;
View Full Code Here

Examples of org.brain.pojos.Userinfo

  public void initUserinfo(){
    List list = DBOperate.search("Userinfo where userinfoid='"+userinfoid+"'");
        FacesContext facesContext = FacesContext.getCurrentInstance();
                ExternalContext extContext = facesContext.getExternalContext();
                extContext.getSession(true);
                Userinfo userinfo = (Userinfo) list.get(0);
                extContext.getSessionMap().put("userinfo",userinfo);
  }
View Full Code Here

Examples of org.drools.repository.UserInfo

    /**
     * Create an inbox for the given user name (id)
     */
    public UserInbox(RulesRepository repo,
                     String userName) {
        this.userInfo = new UserInfo( repo,
                                      userName );
        this.userInfo.save();
    }
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.