com.endeca.portal.metadata.psconfig
Class ProvisioningServerMetadataObject

java.lang.Object
  extended by com.endeca.portal.metadata.AbstractMetadata
      extended by com.endeca.portal.metadata.MetadataObject
          extended by com.endeca.portal.metadata.psconfig.ProvisioningServerMetadataObject
All Implemented Interfaces:
Metadata

public class ProvisioningServerMetadataObject
extends MetadataObject


Field Summary
static java.lang.String CONTEXT_PATH_KEY
           
static java.lang.String PORT_KEY
           
static java.lang.String PROVISIONING_SERVER_METADATA_OBJECT_KEY
           
static java.lang.String SERVER_KEY
           
 
Constructor Summary
ProvisioningServerMetadataObject(com.endeca.portal.liferay.ext.metadata.model.MetadataRecord record)
           
ProvisioningServerMetadataObject(java.lang.String value)
           
 
Method Summary
 long getEntryVersion()
          This method returns the current entry version, which we store in the Rel value of the Liferay Metadata object.
 java.lang.String getHost()
           
 java.lang.String getPort()
           
 java.lang.String getProvisioningServerJsonDefinition()
          A convenience method that returns the value under the name of what it is, provisioning server JSON definition.
 org.json.JSONObject getProvisioningServerJsonObject()
          A convenience method that returns the value under the name of what it is, a JSON object
 java.lang.String getSSLConfig()
           
 java.lang.String getType()
          Gets the implementation-specific type.
 void incrementEntryVersion()
          This is a convenience method to increase the current entry version of this object by 1.
 void setEntryVersion(long entryVersion)
          This method will explicitly set the entry version of this object to the passed long.
 void setProvisioningServerJsonDefinition(java.lang.String provisioningServerDefinition)
          A convenience method that sets the value under the name of what it is, provisioning server definition JSON definition.
 
Methods inherited from class com.endeca.portal.metadata.MetadataObject
addProperties, addProperty, equals, getProperties, getProperties, getSourceRecord, init, removeAllProperties, removeProperties, removeProperties, removeProperty, setSourceRecord
 
Methods inherited from class com.endeca.portal.metadata.AbstractMetadata
getDescription, getFeature, getKey, getLastUpdated, getLocale, getObjectId, getRel, getSource, getValue, setDescription, setFeature, setKey, setLastUpdated, setLocale, setObjectId, setRel, setSource, setValue, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROVISIONING_SERVER_METADATA_OBJECT_KEY

public static final java.lang.String PROVISIONING_SERVER_METADATA_OBJECT_KEY
See Also:
Constant Field Values

CONTEXT_PATH_KEY

public static final java.lang.String CONTEXT_PATH_KEY
See Also:
Constant Field Values

PORT_KEY

public static final java.lang.String PORT_KEY
See Also:
Constant Field Values

SERVER_KEY

public static final java.lang.String SERVER_KEY
See Also:
Constant Field Values
Constructor Detail

ProvisioningServerMetadataObject

public ProvisioningServerMetadataObject(com.endeca.portal.liferay.ext.metadata.model.MetadataRecord record)

ProvisioningServerMetadataObject

public ProvisioningServerMetadataObject(java.lang.String value)
Method Detail

getType

public java.lang.String getType()
Description copied from class: MetadataObject
Gets the implementation-specific type.

Specified by:
getType in interface Metadata
Specified by:
getType in class MetadataObject
Returns:
the type of metadata this object represents
See Also:
MetadataObject.getType()

getProvisioningServerJsonDefinition

public java.lang.String getProvisioningServerJsonDefinition()
A convenience method that returns the value under the name of what it is, provisioning server JSON definition. This simply passes the String back.

Returns:
String

getProvisioningServerJsonObject

public org.json.JSONObject getProvisioningServerJsonObject()
A convenience method that returns the value under the name of what it is, a JSON object

Returns:
JSONObject

setProvisioningServerJsonDefinition

public void setProvisioningServerJsonDefinition(java.lang.String provisioningServerDefinition)
A convenience method that sets the value under the name of what it is, provisioning server definition JSON definition.

Parameters:
provisioningServerDefinition -

getEntryVersion

public long getEntryVersion()
This method returns the current entry version, which we store in the Rel value of the Liferay Metadata object. This method returns that value, and attempts to return it as a long. If the entry version is null or unparseable as a long, a 0 version is returned by default.

Returns:
long

setEntryVersion

public void setEntryVersion(long entryVersion)
This method will explicitly set the entry version of this object to the passed long.

Parameters:
entryVersion -

incrementEntryVersion

public void incrementEntryVersion()
This is a convenience method to increase the current entry version of this object by 1.


getHost

public java.lang.String getHost()

getPort

public java.lang.String getPort()

getSSLConfig

public java.lang.String getSSLConfig()