org.openmrs
Class ImplementationId

java.lang.Object
  extended by org.openmrs.ImplementationId
All Implemented Interfaces:
java.io.Serializable

public class ImplementationId
extends java.lang.Object
implements java.io.Serializable

Every installation of OpenMRS should get a unique implementation id. If multiple sites use the same dictionary/form setup, than those sites should share the same implementation id. The ImplementationId is stored and verified on the openmrs servers.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
ImplementationId()
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getDescription()
          Text describing this implementation.
 java.lang.String getImplementationId()
          This is the unique id for this implementation.
 java.lang.String getName()
          A descriptive name for this implementation (e.g.
 java.lang.String getPassphrase()
          This text is a long text string that is used to validate who uses an implementation id.
 int hashCode()
           
 void setDescription(java.lang.String description)
          Text describing this implementation.
 void setImplementationId(java.lang.String implementationId)
          This is the unique id for this implementation.
 void setName(java.lang.String name)
          A descriptive name for this implementation (e.g.
 void setPassphrase(java.lang.String passphrase)
          This text is a long text string that is used to validate who uses an implementation id.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

ImplementationId

public ImplementationId()
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

getDescription

public java.lang.String getDescription()
Text describing this implementation. (e.g. Source for the AMPATH program in Kenya. Created by Paul Biondich)

Returns:
Returns the description.

setDescription

public void setDescription(java.lang.String description)
Text describing this implementation. (e.g. Source for the AMPATH program in Kenya. Created by Paul Biondich)

Parameters:
description - The description to set.

getImplementationId

public java.lang.String getImplementationId()
This is the unique id for this implementation.

The implementation id corresponds to the hl7Code of the ConceptSource that this corresponds to.

Must be limited to 20 characters and numbers. The characters "^" and "|" are not allowed.

Parameters:
implementationId - the implementationId to set
Returns:
the implementationId

setImplementationId

public void setImplementationId(java.lang.String implementationId)
This is the unique id for this implementation.

The implementation id corresponds to the hl7Code of the ConceptSource that this corresponds to.

Must be limited to 20 characters and numbers. The characters "^" and "|" are not allowed.

Parameters:
implementationId - the implementationId to set

getPassphrase

public java.lang.String getPassphrase()
This text is a long text string that is used to validate who uses an implementation id. Multiple installations of openmrs can use the same implmentation id, but they must all know the passphrase. (Note that if an implementation id is shared, it is assumed that those installations are the same implementation).

Returns:
the passphrase

setPassphrase

public void setPassphrase(java.lang.String passphrase)
This text is a long text string that is used to validate who uses an implementation id. Multiple installations of openmrs can use the same implmentation id, but they must all know the passphrase. (Note that if an implementation id is shared, it is assumed that those installations are the same implementation).

Parameters:
passphrase - the passphrase to set

getName

public java.lang.String getName()
A descriptive name for this implementation (e.g. AMRS installation in Eldoret, Kenya)

Returns:
Returns the name.

setName

public void setName(java.lang.String name)
A descriptive name for this implementation (e.g. AMRS installation in Eldoret, Kenya)

Parameters:
name - The concept source name to set.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change