All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.stormpath.sdk.application.CreateApplicationRequestBuilder Maven / Gradle / Ivy

/*
 * Copyright 2013 Stormpath, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.stormpath.sdk.application;

/**
 * A Builder to construct {@link CreateApplicationRequest}s.
 *
 * @see com.stormpath.sdk.tenant.Tenant#createApplication(CreateApplicationRequest)
 * @since 0.8
 */
public interface CreateApplicationRequestBuilder {

    /**
     * Directive to also create a new Directory for the new Application's needs.  The new Directory will automatically
     * be assigned as the Application's default login source.
     * 

* The directory will be automatically named based on heuristics to ensure a guaranteed unique name based on the * application. If you want to specify the Directory's name, use the {@link #createDirectoryNamed(String)} method. * * @return the builder instance for method chaining. * @see #createDirectoryNamed(String) */ CreateApplicationRequestBuilder createDirectory(); /** * Directive to also create a new Directory (with the specified {@code directoryName} for the new Application's * needs. The new Directory will automatically be assigned as the Application's default login source. *

* If you don't care about the new Directory's name and want a reasonable default assigned automatically, don't * call this method - call {@link #createDirectory()} instead. * * @return the builder instance for method chaining. * @see #createDirectory() */ CreateApplicationRequestBuilder createDirectoryNamed(String name); /** * Creates a new {@code CreateApplicationRequest} instance based on the current builder state. * * @return a new {@code CreateApplicationRequest} instance based on the current builder state. */ CreateApplicationRequest build(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy