Package com.priint.pubserver.document
Class ConfigFileProperties
- java.lang.Object
-
- com.priint.pubserver.document.ConfigFileProperties
-
- All Implemented Interfaces:
java.io.Serializable
public class ConfigFileProperties extends java.lang.Object implements java.io.SerializableProperties of a config file in the repository. These properties are stored as property values assigned to the file in the repository.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTYPE_ENTITY_MODELDeprecated.
-
Constructor Summary
Constructors Constructor Description ConfigFileProperties()Instantiates a new Config file properties.ConfigFileProperties(java.lang.String path, java.lang.String user)Instantiates a new Config file properties.ConfigFileProperties(java.lang.String path, java.lang.String user, boolean exists)Instantiates a new Config file properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddProperty(Document.DocumentProperties name, java.lang.String value)Add property.java.lang.StringgetClient()Gets client.java.lang.StringgetCreatedBy()Gets created by.java.lang.StringgetCreatedOn()Gets created on.java.lang.StringgetDescription()Gets description.java.lang.StringgetFilename()Gets filename.java.lang.StringgetHash()Gets hash.java.lang.StringgetLocalFilePath()Gets local file path.DocumentLockgetLock()Gets current lock status of document.java.lang.StringgetName()Gets name.java.lang.StringgetOrigin()Gets origin.java.lang.StringgetOriginVersion()Gets origin version.java.lang.StringgetPath()Gets path.java.lang.StringgetPluginName()Gets plugin name.java.util.Map<Document.DocumentProperties,java.lang.String>getProperties()Gets properties.java.lang.StringgetRevision()Gets revision.java.lang.StringgetType()Gets type.java.lang.StringgetUpdatedBy()Gets updated by.java.lang.StringgetUpdatedOn()Gets updated on.booleanisActive()Is active boolean.booleanisDeleted()Is deleted boolean.java.lang.StringpropertiesToString()Properties to string string.voidsetActive(boolean active)Sets active.voidsetClient(java.lang.String client)Sets client.voidsetCreatedBy(java.lang.String createdBy)Sets created by.voidsetCreatedOn(java.lang.String createdOn)Sets created on.voidsetDeleted(boolean deleted)Sets deleted.voidsetDescription(java.lang.String description)Sets description.voidsetFilename(java.lang.String filename)Sets filename.voidsetHash(java.lang.String hash)Sets hash.voidsetLocalFilePath(java.lang.String localFilePath)Sets local file path.voidsetLock(DocumentLock lock)Sets lock.voidsetName(java.lang.String name)Sets name.voidsetOrigin(java.lang.String origin)Sets origin.voidsetOriginVersion(java.lang.String originVersion)Sets origin version.voidsetPath(java.lang.String path)Sets path.voidsetPluginName(java.lang.String pluginName)Sets plugin name.voidsetProperties(java.util.Map<Document.DocumentProperties,java.lang.String> properties)Sets properties.voidsetRevision(java.lang.String revision)Sets revision.voidsetType(java.lang.String type)Sets type.voidsetUpdatedBy(java.lang.String updatedBy)Sets updated by.voidsetUpdatedOn(java.lang.String updatedOn)Sets updated on.voidshow()Deprecated.java.lang.StringtoString()
-
-
-
Field Detail
-
TYPE_ENTITY_MODEL
@Deprecated public static final java.lang.String TYPE_ENTITY_MODEL
Deprecated.The constant TYPE_ENTITY_MODEL.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ConfigFileProperties
public ConfigFileProperties()
Instantiates a new Config file properties.
-
ConfigFileProperties
public ConfigFileProperties(java.lang.String path, java.lang.String user)Instantiates a new Config file properties.- Parameters:
path- the pathuser- the user
-
ConfigFileProperties
public ConfigFileProperties(java.lang.String path, java.lang.String user, boolean exists)Instantiates a new Config file properties.- Parameters:
path- the pathuser- the userexists- the exists
-
-
Method Detail
-
getLock
public DocumentLock getLock()
Gets current lock status of document.- Returns:
- the lock
-
setLock
public void setLock(DocumentLock lock)
Sets lock.- Parameters:
lock- the lock
-
getFilename
public java.lang.String getFilename()
Gets filename.- Returns:
- the filename
-
setFilename
public void setFilename(java.lang.String filename)
Sets filename.- Parameters:
filename- the filename
-
getPath
public java.lang.String getPath()
Gets path.- Returns:
- the path
-
setPath
public void setPath(java.lang.String path)
Sets path.- Parameters:
path- the path
-
getName
public java.lang.String getName()
Gets name.- Returns:
- the name
-
setName
public void setName(java.lang.String name)
Sets name.- Parameters:
name- the name
-
getDescription
public java.lang.String getDescription()
Gets description.- Returns:
- the description
-
setDescription
public void setDescription(java.lang.String description)
Sets description.- Parameters:
description- the description
-
getRevision
public java.lang.String getRevision()
Gets revision.- Returns:
- the revision
-
setRevision
public void setRevision(java.lang.String revision)
Sets revision.- Parameters:
revision- the revision
-
getCreatedOn
public java.lang.String getCreatedOn()
Gets created on.- Returns:
- the created on
-
setCreatedOn
public void setCreatedOn(java.lang.String createdOn)
Sets created on.- Parameters:
createdOn- the created on
-
getCreatedBy
public java.lang.String getCreatedBy()
Gets created by.- Returns:
- the created by
-
setCreatedBy
public void setCreatedBy(java.lang.String createdBy)
Sets created by.- Parameters:
createdBy- the created by
-
getUpdatedOn
public java.lang.String getUpdatedOn()
Gets updated on.- Returns:
- the updated on
-
setUpdatedOn
public void setUpdatedOn(java.lang.String updatedOn)
Sets updated on.- Parameters:
updatedOn- the updated on
-
getUpdatedBy
public java.lang.String getUpdatedBy()
Gets updated by.- Returns:
- the updated by
-
setUpdatedBy
public void setUpdatedBy(java.lang.String updatedBy)
Sets updated by.- Parameters:
updatedBy- the updated by
-
isActive
public boolean isActive()
Is active boolean.- Returns:
- the boolean
-
setActive
public void setActive(boolean active)
Sets active.- Parameters:
active- the active
-
getPluginName
public java.lang.String getPluginName()
Gets plugin name.- Returns:
- the plugin name
-
setPluginName
public void setPluginName(java.lang.String pluginName)
Sets plugin name.- Parameters:
pluginName- the plugin name
-
getType
public java.lang.String getType()
Gets type.- Returns:
- the type
-
setType
public void setType(java.lang.String type)
Sets type.- Parameters:
type- the type
-
isDeleted
public boolean isDeleted()
Is deleted boolean.- Returns:
- the boolean
-
setDeleted
public void setDeleted(boolean deleted)
Sets deleted.- Parameters:
deleted- the deleted
-
getLocalFilePath
public java.lang.String getLocalFilePath()
Gets local file path.- Returns:
- the local file path
-
setLocalFilePath
public void setLocalFilePath(java.lang.String localFilePath)
Sets local file path.- Parameters:
localFilePath- the local file path
-
getClient
public java.lang.String getClient()
Gets client.- Returns:
- the client
-
setClient
public void setClient(java.lang.String client)
Sets client.- Parameters:
client- the client
-
getProperties
public java.util.Map<Document.DocumentProperties,java.lang.String> getProperties()
Gets properties.- Returns:
- the properties
-
setProperties
public void setProperties(java.util.Map<Document.DocumentProperties,java.lang.String> properties)
Sets properties.- Parameters:
properties- the properties
-
addProperty
public void addProperty(Document.DocumentProperties name, java.lang.String value)
Add property.- Parameters:
name- the namevalue- the value
-
show
@Deprecated public void show()
Deprecated.Show.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
propertiesToString
public java.lang.String propertiesToString()
Properties to string string.- Returns:
- the string
-
getOrigin
public java.lang.String getOrigin()
Gets origin.- Returns:
- the origin
-
setOrigin
public void setOrigin(java.lang.String origin)
Sets origin.- Parameters:
origin- the origin
-
getOriginVersion
public java.lang.String getOriginVersion()
Gets origin version.- Returns:
- the origin version
-
setOriginVersion
public void setOriginVersion(java.lang.String originVersion)
Sets origin version.- Parameters:
originVersion- the origin version
-
getHash
public java.lang.String getHash()
Gets hash.- Returns:
- the hash
-
setHash
public void setHash(java.lang.String hash)
Sets hash.- Parameters:
hash- the hash
-
-