de.smartics.properties.admin.domain.model
Class JndiConfiguration

Package class diagram package JndiConfiguration
java.lang.Object
  extended by de.smartics.properties.admin.domain.model.JndiConfiguration
All Implemented Interfaces:
Serializable

public final class JndiConfiguration
     
     
extends Object
implements Serializable

Stores JNDI configuration properties.

See Also:
Serialized Form

Constructor Summary
JndiConfiguration()
          Default constructor.
 
Method Summary
 String getArchiveType()
          Returns the archive type of the application the configuration is associated with.
 String getArtifactId()
          Returns the artifact identifier of the application the configuration is associated with.
 String getCacheName()
          Returns the name of the cache within the JNDI to be looked up.
 String getClassifier()
          Returns the classifier of the application the configuration is associated with.
 Boolean getDsCreateTable()
          Returns the flag to the datasource to create the properties table.
 Boolean getDsDropTable()
          Returns the flag to the datasource to drop the properties table.
 String getDsName()
          Returns the name of the datasource within the JNDI to be looked up.
 String getGroupId()
          Returns the group identifier of the application the configuration is associated with.
static JndiConfiguration getJndiConfiguration()
          Provides access to the JNDI configuration.
 String getSecurityAlgorithm()
          Returns the security algorithm.
 String getSecurityKey()
          Returns the security key.
 String getSecurityProvider()
          Returns the security provider.
 String getSecurityTransformation()
          Returns the security transformation.
 String getVersion()
          Returns the version of the application the configuration is associated with.
 void initialize()
          Initializes the configuration by copying the property values from the JNDI.
 boolean isInitialized()
          Checks if the configuration has already been initialized.
 void setArchiveType(String archiveType)
          Sets the archive type of the application the configuration is associated with.
 void setArtifactId(String artifactId)
          Sets the artifact identifier of the application the configuration is associated with.
 void setCacheName(String cacheName)
          Sets the name of the cache within the JNDI to be looked up.
 void setClassifier(String classifier)
          Sets the classifier of the application the configuration is associated with.
 void setDsCreateTable(Boolean dsCreateTable)
          Sets the flag to the datasource to create the properties table.
 void setDsCreateTable(String dsCreateTable)
          Sets the flag to the datasource to create the properties table.
 void setDsDropTable(Boolean dsDropTable)
          Sets the flag to the datasource to drop the properties table.
 void setDsDropTable(String dsDropTable)
          Sets the flag to the datasource to drop the properties table.
 void setDsName(String dsName)
          Sets the name of the datasource within the JNDI to be looked up.
 void setGroupId(String groupId)
          Sets the group identifier of the application the configuration is associated with.
 void setSecurityAlgorithm(String securityAlgorithm)
          Sets the security algorithm.
 void setSecurityKey(String securityKey)
          Sets the security key.
 void setSecurityProvider(String securityProvider)
          Sets the security provider.
 void setSecurityTransformation(String securityTransformation)
          Sets the security transformation.
 void setVersion(String version)
          Sets the version of the application the configuration is associated with.
 void update()
          Updates the JNDI context with the values in this configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JndiConfiguration

public JndiConfiguration()
Default constructor.

Method Detail

initialize

public void initialize()
                throws IllegalStateException
Initializes the configuration by copying the property values from the JNDI.

Throws:
IllegalStateException - on any problem accessing the JNDI context.

isInitialized

public boolean isInitialized()
Checks if the configuration has already been initialized.

Returns:
true if already initialized, false otherwise.

getGroupId

public String getGroupId()
Returns the group identifier of the application the configuration is associated with.

Returns:
the group identifier of the application the configuration is associated with.

setGroupId

public void setGroupId(String groupId)
Sets the group identifier of the application the configuration is associated with.

Parameters:
groupId - the group identifier of the application the configuration is associated with.

getArtifactId

public String getArtifactId()
Returns the artifact identifier of the application the configuration is associated with.

Returns:
the artifact identifier of the application the configuration is associated with.

setArtifactId

public void setArtifactId(String artifactId)
Sets the artifact identifier of the application the configuration is associated with.

Parameters:
artifactId - the artifact identifier of the application the configuration is associated with.

getVersion

public String getVersion()
Returns the version of the application the configuration is associated with.

Returns:
the version of the application the configuration is associated with.

setVersion

public void setVersion(String version)
Sets the version of the application the configuration is associated with.

Parameters:
version - the version of the application the configuration is associated with.

getArchiveType

public String getArchiveType()
Returns the archive type of the application the configuration is associated with.

Returns:
the archive type of the application the configuration is associated with.

setArchiveType

public void setArchiveType(String archiveType)
Sets the archive type of the application the configuration is associated with.

Parameters:
archiveType - the archive type of the application the configuration is associated with.

getClassifier

public String getClassifier()
Returns the classifier of the application the configuration is associated with.

Returns:
the classifier of the application the configuration is associated with.

setClassifier

public void setClassifier(String classifier)
Sets the classifier of the application the configuration is associated with.

Parameters:
classifier - the classifier of the application the configuration is associated with.

getCacheName

public String getCacheName()
Returns the name of the cache within the JNDI to be looked up.

Returns:
the name of the cache within the JNDI to be looked up.

setCacheName

public void setCacheName(String cacheName)
Sets the name of the cache within the JNDI to be looked up.

Parameters:
cacheName - the name of the cache within the JNDI to be looked up.

getDsName

public String getDsName()
Returns the name of the datasource within the JNDI to be looked up.

Returns:
the name of the datasource within the JNDI to be looked up.

setDsName

public void setDsName(String dsName)
Sets the name of the datasource within the JNDI to be looked up.

Parameters:
dsName - the name of the datasource within the JNDI to be looked up.

getDsCreateTable

public Boolean getDsCreateTable()
Returns the flag to the datasource to create the properties table.

Returns:
the flag to the datasource to create the properties table.

setDsCreateTable

public void setDsCreateTable(Boolean dsCreateTable)
Sets the flag to the datasource to create the properties table.

Parameters:
dsCreateTable - the flag to the datasource to create the properties table.

setDsCreateTable

public void setDsCreateTable(String dsCreateTable)
Sets the flag to the datasource to create the properties table.

Parameters:
dsCreateTable - the flag to the datasource to create the properties table.

getDsDropTable

public Boolean getDsDropTable()
Returns the flag to the datasource to drop the properties table.

Returns:
the flag to the datasource to drop the properties table.

setDsDropTable

public void setDsDropTable(Boolean dsDropTable)
Sets the flag to the datasource to drop the properties table.

Parameters:
dsDropTable - the flag to the datasource to drop the properties table.

setDsDropTable

public void setDsDropTable(String dsDropTable)
Sets the flag to the datasource to drop the properties table.

Parameters:
dsDropTable - the flag to the datasource to drop the properties table.

getSecurityKey

public String getSecurityKey()
Returns the security key.

Returns:
the security key.

setSecurityKey

public void setSecurityKey(String securityKey)
Sets the security key.

Parameters:
securityKey - the security key.

getSecurityAlgorithm

public String getSecurityAlgorithm()
Returns the security algorithm.

Returns:
the security algorithm.

setSecurityAlgorithm

public void setSecurityAlgorithm(String securityAlgorithm)
Sets the security algorithm.

Parameters:
securityAlgorithm - the security algorithm.

getSecurityProvider

public String getSecurityProvider()
Returns the security provider.

Returns:
the security provider.

setSecurityProvider

public void setSecurityProvider(String securityProvider)
Sets the security provider.

Parameters:
securityProvider - the security provider.

getSecurityTransformation

public String getSecurityTransformation()
Returns the security transformation.

Returns:
the security transformation.

setSecurityTransformation

public void setSecurityTransformation(String securityTransformation)
Sets the security transformation.

Parameters:
securityTransformation - the security transformation.

update

public void update()
            throws NamingException
Updates the JNDI context with the values in this configuration.

Throws:
NamingException - on any problem setting any value.

getJndiConfiguration

public static JndiConfiguration getJndiConfiguration()
Provides access to the JNDI configuration.

Returns:
the JNDI configuration.


Copyright © 2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.