|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.portal.core.impl.portlet.state.PersistentConsumer
public class PersistentConsumer
Constructor Summary | |
---|---|
PersistentConsumer(java.lang.String id,
java.lang.String name)
Manager constructor. |
Method Summary | |
---|---|
ConsumerCapabilities |
getCapabilities()
|
java.lang.String |
getConsumerAgent()
|
ConsumerGroup |
getGroup()
Returns the group that this consumer belongs to. |
java.lang.String |
getId()
Retrieves this Consumer's identity, which uniquely identifies the Consumer since the name cannot be relied on. |
java.lang.Long |
getKey()
|
java.lang.String |
getName()
Return the consumer name. |
java.lang.String |
getPersistentAgent()
|
java.lang.String |
getPersistentId()
|
java.lang.String |
getPersistentName()
|
RegistrationStatus |
getPersistentStatus()
|
java.util.Collection |
getRegistrations()
Return all the registrations for the specified consumer. |
PersistentConsumerGroup |
getRelatedGroup()
|
java.util.Set |
getRelatedRegistrations()
|
RegistrationStatus |
getStatus()
Return the registration status of the consumer entity. |
void |
setCapabilities(ConsumerCapabilities capabilities)
|
void |
setConsumerAgent(java.lang.String consumerAgent)
|
void |
setGroup(ConsumerGroup group)
|
void |
setKey(java.lang.Long key)
|
void |
setPersistentAgent(java.lang.String persistentAgent)
|
void |
setPersistentId(java.lang.String persistentId)
|
void |
setPersistentName(java.lang.String persistentName)
|
void |
setPersistentStatus(RegistrationStatus persistentStatus)
|
void |
setRelatedGroup(PersistentConsumerGroup relatedGroup)
|
void |
setRelatedRegistrations(java.util.Set relatedRegistrations)
|
void |
setStatus(RegistrationStatus status)
Set the registration status of the consumer entity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PersistentConsumer(java.lang.String id, java.lang.String name)
id
- name
- Method Detail |
---|
public java.lang.Long getKey()
public void setKey(java.lang.Long key)
public java.lang.String getPersistentId()
public void setPersistentId(java.lang.String persistentId)
public java.lang.String getPersistentName()
public void setPersistentName(java.lang.String persistentName)
public RegistrationStatus getPersistentStatus()
public void setPersistentStatus(RegistrationStatus persistentStatus)
public java.lang.String getPersistentAgent()
public void setPersistentAgent(java.lang.String persistentAgent)
public java.util.Set getRelatedRegistrations()
public void setRelatedRegistrations(java.util.Set relatedRegistrations)
public PersistentConsumerGroup getRelatedGroup()
public void setRelatedGroup(PersistentConsumerGroup relatedGroup)
public java.lang.String getName()
Consumer
getName
in interface Consumer
public RegistrationStatus getStatus()
Consumer
getStatus
in interface Consumer
public void setStatus(RegistrationStatus status)
Consumer
setStatus
in interface Consumer
status
- the registration statuspublic java.util.Collection getRegistrations() throws RegistrationException
Consumer
getRegistrations
in interface Consumer
RegistrationException
public ConsumerGroup getGroup()
Consumer
getGroup
in interface Consumer
public java.lang.String getId()
Consumer
RegistrationPolicy
to determine what the Consumer's identity is. Note also that this is
different from the Consumer's database identifier.
getId
in interface Consumer
public ConsumerCapabilities getCapabilities()
getCapabilities
in interface Consumer
public void setCapabilities(ConsumerCapabilities capabilities)
setCapabilities
in interface Consumer
public void setGroup(ConsumerGroup group) throws RegistrationException, DuplicateRegistrationException
setGroup
in interface Consumer
RegistrationException
DuplicateRegistrationException
public java.lang.String getConsumerAgent()
getConsumerAgent
in interface Consumer
public void setConsumerAgent(java.lang.String consumerAgent) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException
setConsumerAgent
in interface Consumer
java.lang.IllegalArgumentException
java.lang.IllegalStateException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |