Package com.s3auth.hosts

Examples of com.s3auth.hosts.User


     * Public ctor.
     * @param identity The identity
     */
    public RestUser(@NotNull final Identity identity) {
        this(
            new User() {
                @Override
                public URN identity() {
                    return identity.urn();
                }
                @Override
View Full Code Here


     * Get current user.
     * @return Name of the user
     */
    protected final User user() {
        final Identity identity = this.auth().identity();
        User user;
        if (identity.equals(Identity.ANONYMOUS)) {
            user = User.ANONYMOUS;
        } else {
            user = new RestUser(identity);
        }
View Full Code Here

        @FormParam("bucket") final String bucket,
        @DefaultValue("s3") @FormParam("region") final String region,
        @DefaultValue("syslog.s3auth.com:514") @FormParam("syslog")
        final String syslog)
        throws IOException {
        final User user = this.user();
        if (user.equals(User.ANONYMOUS)) {
            throw FlashInset.forward(
                this.uriInfo().getBaseUri(),
                "please login first, in order to add new domains",
                Level.SEVERE
            );
View Full Code Here

     */
    @GET
    @Path("/remove")
    public Response remove(@QueryParam("host") final String host)
        throws IOException {
        final User user = this.user();
        if (user.equals(User.ANONYMOUS)) {
            throw FlashInset.forward(
                this.uriInfo().getBaseUri(),
                "please login first, to be able to delete domains",
                Level.SEVERE
            );
View Full Code Here

TOP

Related Classes of com.s3auth.hosts.User

Copyright © 2018 www.massapicom. 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.