Examples of BundleKey


Examples of org.jboss.seam.international.status.builder.BundleKey

        return userLocale.get();
    }
   
    public void setUserLocale(Locale locale) {       
        localeEvent.fire(locale);
        messages.info(new BundleKey("resources", "message.localechange"), locale.getDisplayName(locale));
    }
View Full Code Here

Examples of org.jboss.seam.international.status.builder.BundleKey

    }

    private boolean verifyUsernameIsAvailable() {
        User existing = em.find(User.class, newUser.getUsername());
        if (existing != null) {
            messages.warn(new BundleKey("messages", "account_usernameTaken"))
                    .defaults("The username '{0}' is already taken. Please choose another username.")
                    .targets(usernameInput.getClientId()).params(newUser.getUsername());
            return false;
        }
View Full Code Here

Examples of org.jboss.seam.international.status.builder.BundleKey

        }
        return "";
    }

    public String deleteAll() {
      messages.info(new BundleKey("shortly", "linksDeleted"));
        em.createQuery("delete from TinyLink").executeUpdate();
        return "pretty:";
    }
View Full Code Here

Examples of org.servalproject.servaldna.BundleKey

    long version = headerUnsignedLong(conn, "Serval-Rhizome-Bundle-Version");
    long filesize = headerUnsignedLong(conn, "Serval-Rhizome-Bundle-Filesize");
    FileHash filehash = filesize == 0 ? null : header(conn, "Serval-Rhizome-Bundle-Filehash", FileHash.class);
    SubscriberId sender = headerOrNull(conn, "Serval-Rhizome-Bundle-Sender", SubscriberId.class);
    SubscriberId recipient = headerOrNull(conn, "Serval-Rhizome-Bundle-Recipient", SubscriberId.class);
    BundleKey BK = headerOrNull(conn, "Serval-Rhizome-Bundle-BK", BundleKey.class);
    Integer crypt = headerIntegerOrNull(conn, "Serval-Rhizome-Bundle-Crypt");
    Long tail = headerUnsignedLongOrNull(conn, "Serval-Rhizome-Bundle-Tail");
    Long date = headerUnsignedLongOrNull(conn, "Serval-Rhizome-Bundle-Date");
    String service = conn.getHeaderField("Serval-Rhizome-Bundle-Service");
    String name = headerQuotedStringOrNull(conn, "Serval-Rhizome-Bundle-Name");
View Full Code Here

Examples of org.servalproject.servaldna.BundleKey

            else if (fieldName.equals("sender"))
              this.sender = parseField(this.sender, new SubscriberId(fieldValue));
            else if (fieldName.equals("recipient"))
              this.recipient = parseField(this.recipient, new SubscriberId(fieldValue));
            else if (fieldName.equals("BK"))
              this.BK = parseField(this.BK, new BundleKey(fieldValue));
            else if (fieldName.equals("crypt"))
              this.crypt = parseField(this.crypt, Integer.parseInt(fieldValue));
            else if (fieldName.equals("tail"))
              this.tail = parseField(this.tail, parseUnsignedLong(fieldValue));
            else if (fieldName.equals("date"))
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.