Examples of UserData


Examples of com.sdltridion.contentmanager.r6.UserData

    System.out.println(String.format("Client initialized in %.3fs", duration / 1000.0));
    duration = System.currentTimeMillis();

    System.out.println("Api version: " + client.getApiVersion());

    UserData currentUser = client.getCurrentUser();
    System.out.println("Current user: '" + currentUser.getTitle() + "' '" + currentUser.getDescription() + "' " +
        currentUser.getId());

    System.out.println("Publication objects:");
    PublicationsFilterData filter = new PublicationsFilterData();
    ArrayOfIdentifiableObjectData systemWideList = client.getSystemWideList(filter);
    for (IdentifiableObjectData iod : systemWideList.getIdentifiableObjectData()) {
View Full Code Here

Examples of de.fhkn.in.uce.mediator.peerregistry.UserData

    private void handleConnectionRequest(final Message message, final Socket controlConnection) throws Exception {
        this.mediatorUtil.checkForAttribute(message, Username.class);
        this.connectionRequests.putConnectionRequest(new ConnectionRequest(controlConnection, message));
        final Username username = message.getAttribute(Username.class);
        final UserData user = this.userList.getUserDataByUserId(username.getUsernameAsString());
        if (user == null) {
            final String errorMessage = "User " + username.getUsernameAsString() + " not exists"; //$NON-NLS-1$ //$NON-NLS-2$
            this.sendFailureResponse(message, errorMessage, STUNErrorCode.BAD_REQUEST,
                    controlConnection.getOutputStream());
        } else {
View Full Code Here

Examples of edu.stanford.bmir.protege.web.client.rpc.data.UserData

     * null if open id attribute is not present in session
     * (non-Javadoc)
     * @see edu.stanford.bmir.protege.web.client.rpc.OpenIdService#isOpenIdInSession()
     */
    public UserData isOpenIdInSessForAddNewOpenId() {
        UserData userData = null;
        try {
            HttpServletRequest request = this.getThreadLocalRequest();
            HttpSession session = request.getSession();
            String openIdUrl = (String) session.getAttribute(OpenIdConstants.HTTPSESSION_OPENID_URL);

            if (openIdUrl != null) {
                Optional<UserId> userId = MetaProjectManager.getManager().getUserAssociatedWithOpenId(openIdUrl);
                if (userId.isPresent()) {
                    userData = new UserData(userId.get());
                    session.setAttribute(OpenIdConstants.HTTPSESSION_OPENID_URL, null);
                    session.setAttribute(OpenIdConstants.HTTPSESSION_OPENID_ID, null);
                    session.setAttribute(OpenIdConstants.HTTPSESSION_OPENID_PROVIDER, null);
                }
            }
View Full Code Here

Examples of io.fathom.cloud.protobuf.IdentityModel.UserData

        }
        return user;
    }

    protected UserData getUser(long userId) throws CloudException {
        UserData user = findUser(userId);
        if (user == null) {
            log.info("User not found / authorized: {}", userId);
            throw new WebApplicationException(Status.NOT_FOUND);
        }
View Full Code Here

Examples of mage.players.net.UserData

        this.isAdmin = true;
        User user = UserManager.getInstance().createUser("Admin", host);
        if (user == null) {
            user = UserManager.getInstance().findUser("Admin");
        }
        user.setUserData(new UserData(UserGroup.ADMIN, 0, false, null));
        if (!UserManager.getInstance().connectToSession(sessionId, user.getId())) {
               logger.info("Error connecting Admin!");
        }       
        this.userId = user.getId();
    }
View Full Code Here

Examples of net.cis.common.model.system.UserData

public class UserManager implements IUserManager {

  @Override
  public UserData getUserData(UserAuthorizedToken token) {
    return new UserData("Honk");
  }
View Full Code Here

Examples of org.apache.aries.jmx.codec.UserData

        Role role = userAdmin.getRole(username);
        if (role == null) {
            return null;
        }
        validateRoleType(role, Role.USER);
        return new UserData((User) role).toCompositeData();
    }
View Full Code Here

Examples of org.apache.hadoop.hbase.stargate.util.UserData

   * @throws IOException
   */
  public boolean userRequestLimit(final User user, int want)
      throws IOException {
    if (multiuser) {
      UserData ud = SoftUserData.get(user);
      HTableTokenBucket tb = (HTableTokenBucket) ud.get(UserData.TOKENBUCKET);
      if (tb == null) {
        tb = new HTableTokenBucket(conf, Bytes.toBytes(user.getToken()));
        ud.put(UserData.TOKENBUCKET, tb);
      }
      if (tb.available() < want) {
        return false;
      }
      tb.remove(want);
View Full Code Here

Examples of org.apache.myfaces.custom.date.AbstractHtmlInputDate.UserData

    public void encodeEnd(FacesContext facesContext, UIComponent uiComponent) throws IOException {
        RendererUtils.checkParamValidity(facesContext, uiComponent, HtmlInputDate.class);

        HtmlInputDate inputDate = (HtmlInputDate) uiComponent;
        Locale currentLocale = facesContext.getViewRoot().getLocale();
        UserData userData = null;
        String type = inputDate.getType();
        boolean ampm = inputDate.isAmpm();
        String clientId = uiComponent.getClientId(facesContext);
       
        if (null == inputDate.getConverter())
        {
            userData = (UserData) inputDate.getSubmittedValue();
            if( userData == null )
                userData = inputDate.getUserData(currentLocale);
        }
        else
        {
            //Use converter to get the value as string and
            //create a UserData decoding it.
            String value = org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.getStringValue(facesContext, inputDate);
           
            //Create a UserData bean
            userData = inputDate.getUserData(currentLocale);
           
            if (null != value)
            {
                StringTokenizer st = new StringTokenizer(value,"\n");
                while(st.hasMoreTokens())
                {
                    String token = st.nextToken();
                    if (token.startsWith("year="))
                    {
                        userData.setYear(token.substring(5));
                    }
                    if (token.startsWith("month="))
                    {
                        userData.setYear(token.substring(6));
                    }
                    if (token.startsWith("day="))
                    {
                        userData.setYear(token.substring(4));
                    }
                    if (token.startsWith("hours="))
                    {
                        userData.setYear(token.substring(6));
                    }
                    if (token.startsWith("minutes="))
                    {
                        userData.setYear(token.substring(8));
                    }
                    if (token.startsWith("seconds="))
                    {
                        userData.setYear(token.substring(8));
                    }
                    if (token.startsWith("ampm="))
                    {
                        userData.setYear(token.substring(5));
                    }
                }
            }
        }
View Full Code Here

Examples of org.apache.myfaces.custom.date.HtmlInputDate.UserData

    public void encodeEnd(FacesContext facesContext, UIComponent uiComponent) throws IOException {
        RendererUtils.checkParamValidity(facesContext, uiComponent, HtmlInputDate.class);

        HtmlInputDate inputDate = (HtmlInputDate) uiComponent;
        Locale currentLocale = facesContext.getViewRoot().getLocale();
        UserData userData = (UserData) inputDate.getSubmittedValue();
        if( userData == null )
            userData = inputDate.getUserData(currentLocale);
        String type = inputDate.getType();
        String clientId = uiComponent.getClientId(facesContext);
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.