org.jboss.portal.wsrp.consumer
Class RegistrationInfo
java.lang.Object
   org.jboss.portal.wsrp.consumer.RegistrationInfo
org.jboss.portal.wsrp.consumer.RegistrationInfo
- public class RegistrationInfo 
- extends java.lang.Object
- Since:
- 2.6
- Version:
- $Revision: 7790 $
- Author:
- Chris Laprun
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
RegistrationInfo
public RegistrationInfo(ProducerInfo producerInfo)
RegistrationInfo
public RegistrationInfo(ProducerInfo producerInfo,
                        boolean requiresRegistration)
RegistrationInfo
public RegistrationInfo()
getKey
public java.lang.Long getKey()
- 
 
setKey
public void setKey(java.lang.Long key)
- 
 
getRegistrationHandle
public java.lang.String getRegistrationHandle()
- 
 
setRegistrationHandle
public void setRegistrationHandle(java.lang.String registrationHandle)
- 
 
getRegistrationState
public byte[] getRegistrationState()
- 
 
setRegistrationState
public void setRegistrationState(byte[] registrationState)
- 
 
isRefreshNeeded
public boolean isRefreshNeeded()
- 
 
isRegistrationValid
public java.lang.Boolean isRegistrationValid()
- 
 
isConsistentWithProducerExpectations
public java.lang.Boolean isConsistentWithProducerExpectations()
- 
 
isRegistrationRequired
public java.lang.Boolean isRegistrationRequired()
- Determines whether the associated Producer requires registration.
 
- 
- Returns:
- nullif this RegistrationInfo hasn't queried the Producer yet and thus, doesn't have a
         definitive answer on whether or not the associated Producer requires registration,- Boolean.TRUEif the associated Producer requires registration,- Boolean.FALSEotherwise.
 
isRegistrationDeterminedRequired
public boolean isRegistrationDeterminedRequired()
- Determines whether it has been determined after querying the associated Producer that it requires registration.
 
- 
- Returns:
- trueif and only if the associated Producer has been queried and mandates registration,- falseotherwise.
- Throws:
- java.lang.IllegalStateException- if- refresh(org.jboss.portal.wsrp.core.ServiceDescription, java.lang.String, boolean, boolean)has not yet been called
 
isRegistrationDeterminedNotRequired
public boolean isRegistrationDeterminedNotRequired()
- Determines whether it has been determined after querying the associated Producer that it does NOT
 require registration.
 
- 
- Returns:
- trueif and only if the associated Producer has been queried and does NOT mandate
         registration,- falseotherwise.
- Throws:
- java.lang.IllegalStateException- if- refresh(org.jboss.portal.wsrp.core.ServiceDescription, java.lang.String, boolean, boolean)has not yet been called
 
hasLocalInfo
public boolean hasLocalInfo()
- 
 
getRegistrationData
public RegistrationData getRegistrationData()
- 
 
getConsumerName
public java.lang.String getConsumerName()
- 
 
setConsumerName
public void setConsumerName(java.lang.String consumerName)
- 
 
getConsumerAgent
public java.lang.String getConsumerAgent()
- 
 
getRegistrationProperty
public RegistrationProperty getRegistrationProperty(java.lang.String name)
- 
 
setRegistrationPropertyValue
public RegistrationProperty setRegistrationPropertyValue(java.lang.String name,
                                                         java.lang.String value)
- 
 
removeRegistrationProperty
public void removeRegistrationProperty(java.lang.String name)
- 
 
getRegistrationProperties
public java.util.Map getRegistrationProperties()
- 
 
setRegistrationProperties
public void setRegistrationProperties(java.util.Map registrationProperties)
- 
 
getRegistrationPropertyNames
public java.util.Set getRegistrationPropertyNames()
- 
 
refresh
public RegistrationInfo.RegistrationRefreshResult refresh(ServiceDescription serviceDescription,
                                                          java.lang.String producerId,
                                                          boolean mergeWithLocalInfo,
                                                          boolean forceRefresh)
- 
- Parameters:
- serviceDescription-
- producerId-
- mergeWithLocalInfo-
- forceRefresh-
- Returns:
 
setRegistrationContext
public void setRegistrationContext(RegistrationContext registrationContext)
- 
 
setRegistrationValidInternalState
public void setRegistrationValidInternalState()
- todo: revert to package-only once the tests are moved to same package
 
- 
 
getRegistrationContext
public RegistrationContext getRegistrationContext()
- 
 
isModified
public boolean isModified()
- 
 
setModified
public void setModified(boolean modified)
-