Package io.fathom.cloud.server.model

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


    ClientApp clientApp;

    ClientApp getClientApp() throws CloudException {
        if (clientApp == null) {
            Project project = authService.findSystemProject();
            if (project == null) {
                throw new IllegalStateException("Cannot find system project");
            }

            String appName = config.lookup("secrets.appname", "org.openstack::secrets");
View Full Code Here


        } catch (KeyczarException e) {
            throw new IllegalStateException("Error encrypting secret", e);
        }
        item.setCiphertext(ByteString.copyFrom(ciphertext));

        Project project = secretImpl.getProject();

        secretData = repository.getSecrets(project).update(b);
        return new SecretImpl(project, secretData, crypter);
    }
View Full Code Here

    EncryptionStore encryptionStore;

    @Override
    protected Message run0() throws Exception {
        Auth auth = getAuth();
        Project project = auth.getProject();

        List<Secret> secrets = secretService.list(auth, project);

        Secret found = null;
        for (Secret secret : secrets) {
View Full Code Here

    }

    @Override
    protected List<DnsRecordsetData> run0() throws Exception {
        Auth auth = getAuth();
        Project project = auth.getProject();

        DnsZone zone = dns.findZoneByName(project, zoneName);
        if (zone == null) {
            throw new WebApplicationException(Status.NOT_FOUND);
        }
View Full Code Here

    SecretService secretService;

    @Override
    protected Message run0() throws Exception {
        Auth auth = getAuth();
        Project project = auth.getProject();

        List<Secret> secrets = secretService.list(auth, project);

        for (Secret secret : secrets) {
            SecretInfo secretInfo = secret.getSecretInfo();
View Full Code Here

    Attachments attachments;

    @Override
    protected Message run0() throws Exception {
        Auth auth = getAuth();
        Project project = auth.getProject();

        ClientApp clientApp = attachments.createClientApp(auth, project, appName, appSecret);

        // TODO: Return something useful
        return null;
View Full Code Here

    }

    @Override
    protected DnsRecordsetData run0() throws Exception {
        Auth auth = getAuth();
        Project project = auth.getProject();

        DnsZone zone = dns.findMaximalZone(project, fqdn);
        if (zone == null) {
            throw new IllegalArgumentException("Cannot find matching zone");
        }
View Full Code Here

public class OsAggregatesResource extends ComputeResourceBase {
    private static final Logger log = LoggerFactory.getLogger(OsAggregatesResource.class);

    @GET
    public AggregateList listAggregates() throws CloudException {
        Project project = getProject();

        warnStub();

        AggregateList response = new AggregateList();
        response.aggregates = Lists.newArrayList();
View Full Code Here

    }

    @Override
    @Transactional
    public boolean compact(CompactOperation compaction) throws CloudException, IOException {
        Project project = compaction.getProject();
        String bucketName = compaction.getBucketName();
        String name = compaction.getName();

        BucketData bucket = getBucket(project, bucketName);
View Full Code Here

        //
        // return authStore.getProjects().find(projectId);
    }

    protected Project getProject() throws CloudException {
        Project project = findProject();
        if (project == null) {
            throw new IllegalStateException();
        }
        return null;
    }
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.