Examples of UserInfo


Examples of org.drools.repository.UserInfo

    /**
     * Create an inbox for the current sessions user id.
     */
    public UserInbox(RulesRepository repo) {
        this.userInfo = new UserInfo( repo );
        userInfo.save();
    }
View Full Code Here

Examples of org.eclipse.jetty.plus.jaas.spi.UserInfo

        pwdCredential = convertCredentialLdapToJetty(pwdCredential);

        Credential credential = Credential.getCredential(pwdCredential);
        List roles = getUserRoles(_rootContext, username);

        return new UserInfo(username, credential, roles);
    }
View Full Code Here

Examples of org.eclipse.orion.server.core.metastore.UserInfo

  public void testSiteHostingServiceStart() throws Exception {
    IMetaStore metaStore = getMetaStore();

    SiteHostingService hostingService = new SiteHostingService(SiteHostingConfig.getSiteHostingConfig("https://*.sites.example.org:1234"));

    UserInfo user = new UserInfo();
    user.setUniqueId("A");
    user.setUserName("carlos");
    metaStore.createUser(user);

    SiteInfo site = SiteInfo.newSiteConfiguration(user, "mysite", "myworkspace");
    site.setId("s1");
    site.setName("Some site");
View Full Code Here

Examples of org.efs.openreports.services.info.UserInfo

    return reportInfo;
  }
 
  public static UserInfo convertToUserInfo(ReportUser reportUser)
  {
    UserInfo userInfo = new UserInfo();
    userInfo.setId(reportUser.getId());
    userInfo.setName(reportUser.getName());
    userInfo.setPassword(reportUser.getPassword());
    userInfo.setEmailAddress(reportUser.getEmail());
    userInfo.setExternalId(reportUser.getExternalId());
   
    return userInfo;
  }
View Full Code Here

Examples of org.jboss.remoting3.security.UserInfo

            boolean authenticated = false;
            if (RemotingContext.isSet()) {
                // In this case the principal and credential will not have been set to set some random values.
                SecurityContextUtil util = current.getUtil();

                UserInfo userInfo = RemotingContext.getConnection().getUserInfo();
                Principal p = null;
                String credential = null;
                Subject subject = null;
                if (userInfo instanceof SubjectUserInfo) {
                    SubjectUserInfo sinfo = (SubjectUserInfo) userInfo;
View Full Code Here

Examples of org.jboss.remoting3.security.UserInfo

    @Override
    public HandleableCloseable.Key startReceiving(Channel channel) {
        final ManagementChannelHandler handler = new ManagementChannelHandler(ManagementClientChannelStrategy.create(channel),
                getExecutor());
        UserInfo userInfo = channel.getConnection().getUserInfo();
        if (userInfo instanceof SubjectUserInfo) {
            handler.addHandlerFactory(new ModelControllerClientOperationHandler(getController(), handler,
                    ((SubjectUserInfo) userInfo).getSubject()));
        } else {
            handler.addHandlerFactory(new ModelControllerClientOperationHandler(getController(), handler));
View Full Code Here

Examples of org.jboss.remoting3.security.UserInfo

    @Override
    public HandleableCloseable.Key startReceiving(Channel channel) {
        final ManagementChannelHandler handler = new ManagementChannelHandler(ManagementClientChannelStrategy.create(channel),
                getExecutor());
        UserInfo userInfo = channel.getConnection().getUserInfo();
        if (userInfo instanceof SubjectUserInfo) {
            handler.addHandlerFactory(new ModelControllerClientOperationHandler(getController(), handler,
                    ((SubjectUserInfo) userInfo).getSubject()));
        } else {
            handler.addHandlerFactory(new ModelControllerClientOperationHandler(getController(), handler));
View Full Code Here

Examples of org.jinstagram.entity.users.basicinfo.UserInfo

   */
  public UserInfo getUserInfo(String userId) throws InstagramException {
    Preconditions.checkEmptyString(userId, "UserId cannot be null or empty.");

    String apiMethod = String.format(Methods.USERS_WITH_ID, userId);
    UserInfo userInfo = createInstagramObject(Verbs.GET, UserInfo.class, apiMethod, null);

    return userInfo;
  }
View Full Code Here

Examples of org.jresearch.gossip.beans.user.UserInfo

        try {
            rs = (ResultSet) st.executeQuery();

            if (rs.next()) {
                UserInfo info = new UserInfo();
                UserSettings settings = new UserSettings();
                bean.setId(rs.getInt("id"));
                bean.setName(rs.getString("user_name"));
                info.setEmail(rs.getString("user_mail"));
                bean.setStatus(rs.getInt("user_status"));
                bean.setIntime(rs.getTimestamp("last_intime"));

                if (fullinfo) {
                    settings.setAutologin(rs.getBoolean("auto_login"));
                    bean.setPassword(rs.getString("user_pass"));
                    settings.setMes_per_page(rs.getInt("mes_per_page"));
                }

                info.setCity(rs.getString("user_city"));
                info.setIcq(rs.getString("user_icq"));
                info.setBirthday(rs.getDate("user_dob"));
                info.setHomepage(rs.getString("user_hp"));
                info.setOccupation(rs.getString("user_occupation"));
                settings.setShow_user_mail(rs.getBoolean("show_user_mail"));
                settings.setSignature(rs.getString("user_signature"));
                bean.setInfo(info);
                bean.setSettings(settings);
            }
View Full Code Here

Examples of org.meshcms.core.UserInfo

  public void setStyle(String style) {
    this.style = style;
  }

  public void writeTag() throws IOException {
    UserInfo user = (UserInfo) pageContext.getAttribute("userInfo",
      PageContext.SESSION_SCOPE);
    Locale locale = WebUtils.getPageLocale(pageContext);
    ResourceBundle bundle = ResourceBundle.getBundle("org/meshcms/webui/Locales", locale);

    String a1 = "<a" +
      (Utils.isNullOrEmpty(style) ? "" : " class=\"" + style + "\"") +
      " href=\"";
    String a2 = "\">";
    String a3 = "</a>";
    List l = new ArrayList();

    if (user == null || user.isGuest()) {
      if ((mode == null || mode.equals(MODE_NORMAL)) &&
          !org.meshcms.extra.StaticExporter.isExportRequest(request)) {
        l.add(a1 + adminRelPath.add("login.jsp") + a2 + bundle.getString("adminLogin") + a3);
      }
    } else {
      l.add(a1 + adminRelPath.add("index.jsp") + a2 + bundle.getString("homeTitle") + a3);

      if (!isEdit) {
        if (user.canWrite(webSite, pagePath)) {
          if (webSite.isVisuallyEditable(pagePath)) {
            l.add(a1 + request.getRequestURI() + '?' + HitFilter.ACTION_NAME +
                '=' + HitFilter.ACTION_EDIT + a2 +
                bundle.getString("adminEditPage") + a3);
          }

          if (FileTypes.isPage(pagePath.getLastElement())) {
            l.add(a1 + adminRelPath.add("editsrc.jsp") + "?path=" + pagePath + a2 +
                bundle.getString("adminEditText") + a3);

            l.add(a1 + adminRelPath.add("editsrc.jsp") + "?path=" + pagePath + "&amp;tidy=true" +
                a2 + bundle.getString("adminTidy") + a3);

            Path pathInMenu = webSite.getSiteMap().getPathInMenu(pagePath);

            if (!pathInMenu.isRoot()) {
              Path parentPath = pathInMenu.getParent();

              if (user.canWrite(webSite, parentPath)) {
                l.add(a1 + adminRelPath.add("createpage.jsp") + "?popup=false&amp;path=" +
                    parentPath + a2 + bundle.getString("adminNewPage") + a3);
              }
            }
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.