com.softwareag.mdm.adaptation
Class ActivationStatus

java.lang.Object
  extended bycom.softwareag.mdm.adaptation.ActivationStatus

public final class ActivationStatus
extends Object

Tells whether an adaptation may be used by other applications or any external entities.

For being usable externally, an adaptation must be correct (regarding its XML Schema validation and additional verifications) and it must be explicitly declared as usable. This explicit declaration occurs in three cases:

  1. If adaptation is under an agreement, its activation must be turned on, and provider and distributor must have both given their agreement.
  2. If adaptation is not under an agreement, its activation must be turned on.
  3. In a third particular case, the adaptation is temporarily activated. This can only occur in the context of a 'preview' requested in webMethods Master Data Manager.

An instance of this class is returned by method Adaptation.checkActivable().

See Also:
Adaptation.checkActivable()

Method Summary
 String getMessageIdString()
          If it is not OK, returns a string identifying the first problem identified.
 String getMessageString(Locale currentLocale)
          If it is not OK, returns a localized string describing the problem.
 boolean isActivationNotFound()
          Returns true if adaptation has been deleted since its lookup.
 boolean isCompilationProblem()
          Adaptation cannot be activated since adaptation is not compiled properly.
 boolean isDistributorNotAgreed()
          Deprecated. Always returns false. This feature is no more used for versions after 4.1.4.
 boolean isNotUnderAgreement()
          Deprecated. Always returns false. If an adaptation is above an agreement, this is not a problem since webMethods MDM version 3.0.
 boolean isOK()
          Adaptation can be activated.
 boolean isOKButCompilationProblem()
          Adaptation cannot be activated only because of a compilation problem.
 boolean isProviderNotAgreed()
          Deprecated. Always returns false. This feature is no more used for versions after 4.1.4.
 boolean isTemporaryAlreadyActivated()
          Adaptation cannot be activated because it is made under a temporary activation and this activation has already been activated.
 boolean isTurnedOff()
          Adaptation is not activated.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMessageIdString

public String getMessageIdString()
If it is not OK, returns a string identifying the first problem identified. This string is usually used for logging or it is used as a key for finding a user-friendly label. If this is OK, returns null.


getMessageString

public String getMessageString(Locale currentLocale)
If it is not OK, returns a localized string describing the problem. If this is OK returns null.


isActivationNotFound

public boolean isActivationNotFound()
Returns true if adaptation has been deleted since its lookup.

See Also:
Adaptation.isDeleted()

isCompilationProblem

public boolean isCompilationProblem()
Adaptation cannot be activated since adaptation is not compiled properly.


isDistributorNotAgreed

public boolean isDistributorNotAgreed()
Deprecated. Always returns false. This feature is no more used for versions after 4.1.4.

Adaptation cannot be activated because distributor role does not currently accept the agreement that controls current adaptation.


isNotUnderAgreement

public boolean isNotUnderAgreement()
Deprecated. Always returns false. If an adaptation is above an agreement, this is not a problem since webMethods MDM version 3.0.


isOK

public boolean isOK()
Adaptation can be activated.


isOKButCompilationProblem

public boolean isOKButCompilationProblem()
Adaptation cannot be activated only because of a compilation problem.


isProviderNotAgreed

public boolean isProviderNotAgreed()
Deprecated. Always returns false. This feature is no more used for versions after 4.1.4.

Adaptation cannot be activated because provider role does not currently accept the agreement that controls current adaptation.


isTemporaryAlreadyActivated

public boolean isTemporaryAlreadyActivated()
Adaptation cannot be activated because it is made under a temporary activation and this activation has already been activated.


isTurnedOff

public boolean isTurnedOff()
Adaptation is not activated.



(report a bug)
webMethods MDM 4.2.8 [0558]
Copyright Software AG 2000-2007. All rights reserved.