Package io.fathom.cloud.server.model

Examples of io.fathom.cloud.server.model.Project


        FsBucket bucket;
        User user = null;

        // Check for a public file
        String projectName = getProjectName();
        Project project = new Project(Long.valueOf(projectName));
        bucket = fs.findBucket(user, project, bucketName);

        if (bucket != null) {
            // X-Container-Meta-Web-Index
            String indexPage = bucket.getMetaWebIndex();
View Full Code Here


    FileServiceInternal fs;

    @PUT
    public Response createFile(File src) throws Exception {
        // TODO: Check bucket access before upload?
        Project project = getProject();

        // TODO: This doesn't work for even moderate-sized data

        String contentType = httpRequest.getHeader(HttpHeaders.CONTENT_TYPE);
View Full Code Here

    @POST
    public Response appendToFile(File src) throws Exception {
        // TODO: Special handler for small data?

        // TODO: Check bucket access before upload?
        Project project = getProject();

        FileBlob fileData = FileBlob.build(src);

        // No position specified
        Long position = null;
View Full Code Here

        FsBucket bucket;

        if (!isAuthenticated()) {
            // Check for a public file
            String projectName = getProjectName();
            Project project = new Project(Long.valueOf(projectName));
            bucket = fs.findBucket(user, project, bucketName);
        } else {
            user = getAuth().getUser();
            bucket = fs.findBucket(user, getProject(), bucketName);
        }
View Full Code Here

            throw new IllegalArgumentException();
        }

        Auth auth = getAuth();

        Project project = auth.getProject();
        if (project == null) {
            throw new IllegalArgumentException();
        }

        Attachments.ClientApp app = attachments.createClientApp(auth, project, req.name, req.secret);
View Full Code Here

TOP

Related Classes of io.fathom.cloud.server.model.Project

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.