diff options
| author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2020-03-26 12:36:36 +0100 | 
|---|---|---|
| committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2020-03-26 12:36:36 +0100 | 
| commit | a382287bb7f061bb2a26c095e8e17b324efcb4cf (patch) | |
| tree | 9c08bbd33842597b6748f46a5bf2033313ef6819 /eaaf_core_api/src/main | |
| parent | 726e0837ca6cd9586f8b85aceca91487a9105216 (diff) | |
| download | EAAF-Components-a382287bb7f061bb2a26c095e8e17b324efcb4cf.tar.gz EAAF-Components-a382287bb7f061bb2a26c095e8e17b324efcb4cf.tar.bz2 EAAF-Components-a382287bb7f061bb2a26c095e8e17b324efcb4cf.zip | |
fix codestyle
Diffstat (limited to 'eaaf_core_api/src/main')
8 files changed, 29 insertions, 18 deletions
| diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/IRequest.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/IRequest.java index 99541cd6..384446b8 100644 --- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/IRequest.java +++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/IRequest.java @@ -87,9 +87,10 @@ public interface IRequest extends Serializable {     *     * @param key   The specific identifier of the request-data object     * @param clazz The class type which is stored with this key +   * @param <T> Response class type     * @return The request-data object or null if no data is found with this key     */ -  <T> T getRawData(String key, final Class<T> clazz); +  <T> T getRawData(String key, Class<T> clazz);    /**     * Store a generic data-object into pending request with a specific identifier. @@ -115,6 +116,7 @@ public interface IRequest extends Serializable {     * Wrap the internal dataStorage map into a DAO.     *     * @param wrapper DOA to access SessionData +   * @param <T> Response class type     * @return     */    @Nonnull @@ -241,9 +243,11 @@ public interface IRequest extends Serializable {    /**     * Get get Service-Provider configuration which is associated with this request.     * +   * @param decorator Interface of the Service-Provider information DAO +   * @param <T> Response class type     * @return Service-Provider configuration as object     */ -  <T> T getServiceProviderConfiguration(final Class<T> decorator); +  <T> T getServiceProviderConfiguration(Class<T> decorator);    /**     * Indicates, if this pending-request is aborted by the user. diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IAttributeBuilder.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IAttributeBuilder.java index 9c451282..c490bd9c 100644 --- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IAttributeBuilder.java +++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IAttributeBuilder.java @@ -24,8 +24,8 @@ import at.gv.egiz.eaaf.core.exceptions.AttributeBuilderException;  public interface IAttributeBuilder {    String getName(); -  <ATT> ATT build(final ISpConfiguration oaParam, final IAuthData authData, final IAttributeGenerator<ATT> g) +  <ATT> ATT build(ISpConfiguration oaParam, IAuthData authData, IAttributeGenerator<ATT> g)        throws AttributeBuilderException; -  <ATT> ATT buildEmpty(final IAttributeGenerator<ATT> g); +  <ATT> ATT buildEmpty(IAttributeGenerator<ATT> g);  } diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IAttributeGenerator.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IAttributeGenerator.java index 072f76e6..9f3e35cc 100644 --- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IAttributeGenerator.java +++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IAttributeGenerator.java @@ -28,11 +28,11 @@ public interface IAttributeGenerator<ATT> {     * @param value        value     * @return     */ -  ATT buildStringAttribute(final String friendlyName, final String name, final String value); +  ATT buildStringAttribute(String friendlyName, String name, String value); -  ATT buildIntegerAttribute(final String friendlyName, final String name, final int value); +  ATT buildIntegerAttribute(String friendlyName, String name, int value); -  ATT buildLongAttribute(final String friendlyName, final String name, final long value); +  ATT buildLongAttribute(String friendlyName, String name, long value); -  ATT buildEmptyAttribute(final String friendlyName, final String name); +  ATT buildEmptyAttribute(String friendlyName, String name);  } diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IAuthData.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IAuthData.java index ca946496..62aa8852 100644 --- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IAuthData.java +++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IAuthData.java @@ -166,9 +166,10 @@ public interface IAuthData {     *     * @param key   Identifier for the generic data     * @param clazz Type of the generic data +   * @param <T> Response class type     * @return return the generic data of specific type, otherwise null     */ -  <T> T getGenericData(String key, final Class<T> clazz); +  <T> T getGenericData(String key, Class<T> clazz);    /**     * Get bPK of the user. diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IConfiguration.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IConfiguration.java index b9ba9869..a4914f16 100644 --- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IConfiguration.java +++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IConfiguration.java @@ -29,7 +29,7 @@ public interface IConfiguration {     * @param key configuration key     * @return configuration value or null if it is not found     */ -  String getBasicConfiguration(final String key); +  String getBasicConfiguration(String key);    /**     * Get a configuration value from file based configuration. @@ -38,7 +38,7 @@ public interface IConfiguration {     * @param defaultValue Default value if no value with this key is found     * @return configuration value     */ -  String getBasicConfiguration(final String key, final String defaultValue); +  String getBasicConfiguration(String key, String defaultValue);    /**     * Get a configuration value from file based configuration. @@ -47,7 +47,7 @@ public interface IConfiguration {     * @return configuration value as {@link Boolean} or <code>false</code> if key     *         does not exist     */ -  boolean getBasicConfigurationBoolean(final String key); +  boolean getBasicConfigurationBoolean(String key);    /**     * Get a configuration value from file based configuration. @@ -57,7 +57,7 @@ public interface IConfiguration {     * @return configuration value as {@link Boolean} or <code>defaultValue</code>     *         if key does not exist     */ -  boolean getBasicConfigurationBoolean(final String key, final boolean defaultValue); +  boolean getBasicConfigurationBoolean(String key, boolean defaultValue);    /**     * Get the root directory of the configuration folder. diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IConfigurationWithSP.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IConfigurationWithSP.java index 1ab27e7f..cf8867b3 100644 --- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IConfigurationWithSP.java +++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/IConfigurationWithSP.java @@ -22,7 +22,7 @@ public interface IConfigurationWithSP extends IConfiguration {     *                                    error     */    @Nullable -  ISpConfiguration getServiceProviderConfiguration(final String uniqueID) throws EaafConfigurationException; +  ISpConfiguration getServiceProviderConfiguration(String uniqueID) throws EaafConfigurationException;    /**     * Get a configuration entry for a specific Service Provider that is decorated @@ -32,12 +32,13 @@ public interface IConfigurationWithSP extends IConfiguration {     * @param decorator    Decorator that should be used to decorate the result.     *                     This decorator has to be implement or extend the     *                     {@link ISpConfiguration} interface +   * @param <T> Response class type     * @return <code>T</code> or <code>null</code> if no SP configuration was found     * @throws EaafConfigurationException In case of a Service-Provider loading     *                                    error     */    @Nullable -  <T> T getServiceProviderConfiguration(String spIdentifier, final Class<T> decorator) +  <T> T getServiceProviderConfiguration(String spIdentifier, Class<T> decorator)        throws EaafConfigurationException;    /** @@ -49,7 +50,7 @@ public interface IConfigurationWithSP extends IConfiguration {     * @param prefix Prefix of the configuration key     * @return Map String/String without prefix, but never null     */ -  Map<String, String> getBasicConfigurationWithPrefix(final String prefix); +  Map<String, String> getBasicConfigurationWithPrefix(String prefix);    /**     * Validate a URL if it it is allowed by configuration. diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/data/IAuthProcessDataContainer.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/data/IAuthProcessDataContainer.java index bb1a28bf..274f3f7f 100644 --- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/data/IAuthProcessDataContainer.java +++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/data/IAuthProcessDataContainer.java @@ -140,6 +140,8 @@ public interface IAuthProcessDataContainer {    /**     * Mark that the auth. process was done by an official representatives +   *  +   * @param isOW Mark this data as Organwalter     *     */    void setOW(boolean isOW); @@ -182,6 +184,7 @@ public interface IAuthProcessDataContainer {     *     * @param key   The specific identifier of the session-data object     * @param clazz The class type which is stored with this key +   * @param <T> Response class type     * @return The session-data object or null if no data is found with this key     */    <T> T getGenericDataFromSession(String key, Class<T> clazz); diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/storage/ITransactionStorage.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/storage/ITransactionStorage.java index 754ff9ac..f80fc967 100644 --- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/storage/ITransactionStorage.java +++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/storage/ITransactionStorage.java @@ -70,10 +70,11 @@ public interface ITransactionStorage {     *     * @param key   Id which identifiers the data object     * @param clazz The class type which is stored with this key +   * @param <T> Response class type     * @return The transaction-data object from type class, or null     * @throws EaafStorageException In case of load operation failed     */ -  <T> T get(String key, final Class<T> clazz) throws EaafException; +  <T> T get(String key, Class<T> clazz) throws EaafException;    /**     * Get a data object from transaction storage. @@ -81,10 +82,11 @@ public interface ITransactionStorage {     * @param key         Id which identifiers the data object     * @param clazz       The class type which is stored with this key     * @param dataTimeOut Data-object timeout in [ms] +   * @param <T> Response class type     * @return The transaction-data object from type class, or null     * @throws EaafStorageException In case of load operation failed     */ -  <T> T get(String key, final Class<T> clazz, long dataTimeOut) throws EaafException; +  <T> T get(String key, Class<T> clazz, long dataTimeOut) throws EaafException;    /**     * Change the key of a data object and store it under the new key. | 
