Package org.jivesoftware.openfire.pubsub
Class PubSubModule
- java.lang.Object
-
- org.jivesoftware.openfire.container.BasicModule
-
- org.jivesoftware.openfire.pubsub.PubSubModule
-
- All Implemented Interfaces:
ChannelHandler<org.xmpp.packet.Packet>,Module,DiscoInfoProvider,DiscoItemsProvider,ServerItemsProvider,EntityCapabilitiesListener,PubSubService,RoutableChannelHandler,PropertyEventListener
public class PubSubModule extends BasicModule implements ServerItemsProvider, DiscoInfoProvider, DiscoItemsProvider, RoutableChannelHandler, PubSubService, PropertyEventListener
Module that implements JEP-60: Publish-Subscribe. By default node collections and instant nodes are supported.- Author:
- Matt Tucker
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jivesoftware.openfire.pubsub.PubSubService
PubSubService.UniqueIdentifier
-
-
Field Summary
Fields Modifier and Type Field Description static SystemProperty<Set<org.xmpp.packet.JID>>PUBSUB_ALLOWED_TO_CREATEBare jids of users that are allowed to create nodes.static SystemProperty<Boolean>PUBSUB_CREATE_ANYONEReturns the permission policy for creating nodes.static SystemProperty<Set<org.xmpp.packet.JID>>PUBSUB_SYSADMINSBare jids of users that are system administrators of the PubSub service.
-
Constructor Summary
Constructors Constructor Description PubSubModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNode(Node node)Adds an already persistent node to the service.voidaddSysadmin(org.xmpp.packet.JID userJID)voidaddUserAllowedToCreate(org.xmpp.packet.JID userJID)voidbroadcast(Node node, org.xmpp.packet.Message message, Collection<org.xmpp.packet.JID> jids)Broadcasts the specified Message containing an event notification to a list of subscribers to the specified node.booleancanCreateNode(org.xmpp.packet.JID creator)Returns true if the pubsub service allows the specified user to create nodes.voidentityCapabilitiesChanged(org.xmpp.packet.JID entity, EntityCapabilities updatedEntityCapabilities, Set<String> featuresAdded, Set<String> featuresRemoved, Set<String> identitiesAdded, Set<String> identitiesRemoved)Invoked when a change was detected in the capabilities of a particular entity.org.xmpp.packet.JIDgetAddress()Returns the XMPP address.DefaultNodeConfigurationgetDefaultNodeConfiguration(boolean leafType)Returns the default node configuration for the specified node type ornullif the specified node type is not supported by the service.org.xmpp.forms.DataFormgetExtendedInfo(String name, String node, org.xmpp.packet.JID senderJID)Returns an XDataForm with the extended information about the entity or null if none.Set<org.xmpp.forms.DataForm>getExtendedInfos(String name, String node, org.xmpp.packet.JID senderJID)Returns a collection of XDataForm with the extended information about the entity or an empty collection if none.Iterator<String>getFeatures(String name, String node, org.xmpp.packet.JID senderJID)Returns an Iterator (of String) with the supported features.Iterator<org.dom4j.Element>getIdentities(String name, String node, org.xmpp.packet.JID senderJID)Returns an Iterator (of Element) with the target entity's identities.Iterator<DiscoServerItem>getItems()Returns an Iterator (of DiscoServerItem) with the items associated with the server or null if none.Iterator<DiscoItem>getItems(String name, String node, org.xmpp.packet.JID senderJID)Returns an Iterator (of DiscoItem) with the target entity's items or null if none.AdHocCommandManagergetManager()Returns the ad-hoc commands manager used for this service.NodegetNode(Node.UniqueIdentifier nodeID)Returns theNodethat matches the specified node ID ornullif none was found.Collection<Node>getNodes()Returns the collection of nodes hosted by the pubsub service.CollectionNodegetRootCollectionNode()Returns theCollectionNodethat acts as the root node of the entire node hierarchy.StringgetServiceDomain()StringgetServiceID()Returns a String that uniquely identifies this pubsub service.StringgetServiceName()Collection<String>getShowPresences(org.xmpp.packet.JID subscriber)Returns the show values of the last know presence of all connected resources of the specified subscriber.Map<org.xmpp.packet.JID,Map<org.xmpp.packet.JID,String>>getSubscriberPresences()Returns a registry of the presence's show value of users that subscribed to a node of the pubsub service and for which the node only delivers notifications for online users or node subscriptions deliver events based on the user presence show value.Collection<org.xmpp.packet.JID>getSysadmins()Collection<org.xmpp.packet.JID>getUsersAllowedToCreate()booleanhasInfo(String name, String node, org.xmpp.packet.JID senderJID)Returns true if we can provide information related to the requested name and node.voidinitialize(XMPPServer server)Initializes the basic module.booleanisCollectionNodesSupported()Returns true if the pubsub service supports collection nodes.booleanisInstantNodeSupported()Returns true if the pubsub service allows users to create nodes without specifying the node ID.booleanisMultipleSubscriptionsEnabled()Returns true if a user may have more than one subscription with the node.booleanisNodeCreationRestricted()booleanisServiceAdmin(org.xmpp.packet.JID user)Returns true if the specified user is a sysadmin of the pubsub service or has admin privileges.booleanisServiceEnabled()Returns true if the service is available.voidmarkedAsSeniorClusterMember()voidpresenceSubscriptionNotRequired(Node node, org.xmpp.packet.JID user)Requests the pubsub service to unsubscribe from the presence of the user.voidpresenceSubscriptionRequired(Node node, org.xmpp.packet.JID user)Requests the pubsub service to subscribe to the presence of the user.voidprocess(org.xmpp.packet.Packet packet)Process an XMPP packet.voidpropertyDeleted(String property, Map<String,Object> params)A property was deleted.voidpropertySet(String property, Map<String,Object> params)A property was set.voidremoveNode(Node.UniqueIdentifier nodeID)Removes the specified node from the service.voidremoveSysadmin(org.xmpp.packet.JID userJID)voidremoveUserAllowedToCreate(org.xmpp.packet.JID userJID)voidsend(org.xmpp.packet.Packet packet)Sends the specified packet.voidsendNotification(Node node, org.xmpp.packet.Message message, org.xmpp.packet.JID jid)Sends the specified Message containing an event notification to a specific subscriber of the specified node.voidsetIQDiscoInfoHandler(IQDiscoInfoHandler iqDiscoInfoHandler)voidsetIQDiscoItemsHandler(IQDiscoItemsHandler iqDiscoItemsHandler)voidsetNodeCreationRestricted(boolean nodeCreationRestricted)voidsetServiceEnabled(boolean enabled)voidsetSysadmins(Collection<org.xmpp.packet.JID> userJIDs)voidsetUserAllowedToCreate(Collection<org.xmpp.packet.JID> userJIDs)voidstart()Starts the basic module.voidstop()Stops the basic module.voidxmlPropertyDeleted(String property, Map<String,Object> params)An XML property was deleted.voidxmlPropertySet(String property, Map<String,Object> params)An XML property was set.-
Methods inherited from class org.jivesoftware.openfire.container.BasicModule
destroy, getName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.openfire.pubsub.PubSubService
getBarePresences, getNode, getUniqueIdentifier, removeNode
-
-
-
-
Field Detail
-
PUBSUB_CREATE_ANYONE
public static SystemProperty<Boolean> PUBSUB_CREATE_ANYONE
Returns the permission policy for creating nodes. A false value means that not anyone can create a node, only the JIDs listed inxmpp.pubsub.create.jidare allowed to create nodes.
-
PUBSUB_ALLOWED_TO_CREATE
public static SystemProperty<Set<org.xmpp.packet.JID>> PUBSUB_ALLOWED_TO_CREATE
Bare jids of users that are allowed to create nodes. An empty list means that anyone can create nodes.
-
PUBSUB_SYSADMINS
public static SystemProperty<Set<org.xmpp.packet.JID>> PUBSUB_SYSADMINS
Bare jids of users that are system administrators of the PubSub service. A sysadmin has the same permissions as a node owner.
-
-
Method Detail
-
process
public void process(org.xmpp.packet.Packet packet)
Description copied from interface:ChannelHandlerProcess an XMPP packet.- Specified by:
processin interfaceChannelHandler<org.xmpp.packet.Packet>- Parameters:
packet- a packet to process.
-
getServiceID
public String getServiceID()
Description copied from interface:PubSubServiceReturns a String that uniquely identifies this pubsub service. This information is being used when storing node information in the database so it's possible to have nodes with the same ID but under different pubsub services.- Specified by:
getServiceIDin interfacePubSubService- Returns:
- a String that uniquely identifies this pubsub service.
-
canCreateNode
public boolean canCreateNode(org.xmpp.packet.JID creator)
Description copied from interface:PubSubServiceReturns true if the pubsub service allows the specified user to create nodes.- Specified by:
canCreateNodein interfacePubSubService- Parameters:
creator- the JID of the entity trying to create a new node.- Returns:
- true if the pubsub service allows the specified user to create nodes.
-
isServiceAdmin
public boolean isServiceAdmin(org.xmpp.packet.JID user)
Description copied from interface:PubSubServiceReturns true if the specified user is a sysadmin of the pubsub service or has admin privileges.- Specified by:
isServiceAdminin interfacePubSubService- Parameters:
user- the user to check if he has admin privileges.- Returns:
- true if the specified user is a sysadmin of the pubsub service or has admin privileges.
-
isInstantNodeSupported
public boolean isInstantNodeSupported()
Description copied from interface:PubSubServiceReturns true if the pubsub service allows users to create nodes without specifying the node ID. The service will create a random node ID and assigne it to the node.- Specified by:
isInstantNodeSupportedin interfacePubSubService- Returns:
- true if the pubsub service allows users to create nodes without specifying the node ID.
-
isCollectionNodesSupported
public boolean isCollectionNodesSupported()
Description copied from interface:PubSubServiceReturns true if the pubsub service supports collection nodes. When collection nodes is supported it is possible to create hierarchy of nodes where aCollectionNodemay only hold children nodes of typeCollectionNodeorLeafNode. On the other hand,LeafNodecan only holdPublishedItem.- Specified by:
isCollectionNodesSupportedin interfacePubSubService- Returns:
- true if the pubsub service supports collection nodes.
-
getRootCollectionNode
public CollectionNode getRootCollectionNode()
Description copied from interface:PubSubServiceReturns theCollectionNodethat acts as the root node of the entire node hierarchy. The returned node does not have a node identifier. If collection nodes is not supported then returnnull.- Specified by:
getRootCollectionNodein interfacePubSubService- Returns:
- the CollectionNode that acts as the root node of the entire node hierarchy
or
nullif collection nodes is not supported.
-
getDefaultNodeConfiguration
public DefaultNodeConfiguration getDefaultNodeConfiguration(boolean leafType)
Description copied from interface:PubSubServiceReturns the default node configuration for the specified node type ornullif the specified node type is not supported by the service.- Specified by:
getDefaultNodeConfigurationin interfacePubSubService- Parameters:
leafType- true when requesting default configuration of leaf nodes- Returns:
- the default node configuration for the specified node type or
nullif the specified node type is not supported by the service.
-
getShowPresences
public Collection<String> getShowPresences(org.xmpp.packet.JID subscriber)
Description copied from interface:PubSubServiceReturns the show values of the last know presence of all connected resources of the specified subscriber. When the subscriber JID is a bare JID then the answered collection will have many entries one for each connected resource. Moreover, if the user is offline then an empty collectin is returned. Available show status is represented by aonlinevalue. The rest of the possible show values as defined in RFC 3921.- Specified by:
getShowPresencesin interfacePubSubService- Parameters:
subscriber- the JID of the subscriber. This is not the JID of the affiliate.- Returns:
- an empty collection when offline. Otherwise, a collection with the show value of each connected resource.
-
presenceSubscriptionNotRequired
public void presenceSubscriptionNotRequired(Node node, org.xmpp.packet.JID user)
Description copied from interface:PubSubServiceRequests the pubsub service to unsubscribe from the presence of the user. If the service was not subscribed to the user's presence or any node still requires to be subscribed to the user presence then do nothing.- Specified by:
presenceSubscriptionNotRequiredin interfacePubSubService- Parameters:
node- the node that originated the unsubscription request.user- the JID of the affiliate to unsubscribe from his presence.
-
presenceSubscriptionRequired
public void presenceSubscriptionRequired(Node node, org.xmpp.packet.JID user)
Description copied from interface:PubSubServiceRequests the pubsub service to subscribe to the presence of the user. If the service has already subscribed to the user's presence then do nothing.- Specified by:
presenceSubscriptionRequiredin interfacePubSubService- Parameters:
node- the node that originated the subscription request.user- the JID of the affiliate to subscribe to his presence.
-
getServiceName
public String getServiceName()
-
getServiceDomain
public String getServiceDomain()
-
getAddress
public org.xmpp.packet.JID getAddress()
Description copied from interface:RoutableChannelHandlerReturns the XMPP address. The address is used by services like the core server packet router to determine if a packet should be sent to the handler. Handlers that are working on behalf of the server should use the generic server hostname address (e.g. server.com).- Specified by:
getAddressin interfacePubSubService- Specified by:
getAddressin interfaceRoutableChannelHandler- Returns:
- the XMPP address.
-
getUsersAllowedToCreate
public Collection<org.xmpp.packet.JID> getUsersAllowedToCreate()
-
getSysadmins
public Collection<org.xmpp.packet.JID> getSysadmins()
-
setSysadmins
public void setSysadmins(Collection<org.xmpp.packet.JID> userJIDs)
-
addSysadmin
public void addSysadmin(org.xmpp.packet.JID userJID)
-
removeSysadmin
public void removeSysadmin(org.xmpp.packet.JID userJID)
-
isNodeCreationRestricted
public boolean isNodeCreationRestricted()
-
isMultipleSubscriptionsEnabled
public boolean isMultipleSubscriptionsEnabled()
Description copied from interface:PubSubServiceReturns true if a user may have more than one subscription with the node. When multiple subscriptions is enabled each subscription request, event notification and unsubscription request should include asubidattribute.- Specified by:
isMultipleSubscriptionsEnabledin interfacePubSubService- Returns:
- true if a user may have more than one subscription with the node.
-
setNodeCreationRestricted
public void setNodeCreationRestricted(boolean nodeCreationRestricted)
-
setUserAllowedToCreate
public void setUserAllowedToCreate(Collection<org.xmpp.packet.JID> userJIDs)
-
addUserAllowedToCreate
public void addUserAllowedToCreate(org.xmpp.packet.JID userJID)
-
removeUserAllowedToCreate
public void removeUserAllowedToCreate(org.xmpp.packet.JID userJID)
-
initialize
public void initialize(XMPPServer server)
Description copied from class:BasicModuleInitializes the basic module.
Inheriting classes that choose to override this method MUST call this initialize() method before accessing BasicModule resources.
- Specified by:
initializein interfaceModule- Overrides:
initializein classBasicModule- Parameters:
server- the server hosting this module.
-
start
public void start()
Description copied from class:BasicModuleStarts the basic module.
Inheriting classes that choose to override this method MUST call this start() method before accessing BasicModule resources.
- Specified by:
startin interfaceModule- Overrides:
startin classBasicModule
-
stop
public void stop()
Description copied from class:BasicModuleStops the basic module.
Inheriting classes that choose to override this method MUST call this stop() method before accessing BasicModule resources.
- Specified by:
stopin interfaceModule- Overrides:
stopin classBasicModule
-
setIQDiscoItemsHandler
public void setIQDiscoItemsHandler(IQDiscoItemsHandler iqDiscoItemsHandler)
-
setIQDiscoInfoHandler
public void setIQDiscoInfoHandler(IQDiscoInfoHandler iqDiscoInfoHandler)
-
setServiceEnabled
public void setServiceEnabled(boolean enabled)
-
isServiceEnabled
public boolean isServiceEnabled()
Returns true if the service is available. UsesetServiceEnabled(boolean)to enable or disable the service.- Returns:
- true if the MUC service is available.
-
markedAsSeniorClusterMember
public void markedAsSeniorClusterMember()
-
getItems
public Iterator<DiscoServerItem> getItems()
Description copied from interface:ServerItemsProviderReturns an Iterator (of DiscoServerItem) with the items associated with the server or null if none.- Specified by:
getItemsin interfaceServerItemsProvider- Returns:
- an Iterator (of DiscoServerItem) with the items associated with the server or null if none.
-
getIdentities
public Iterator<org.dom4j.Element> getIdentities(String name, String node, org.xmpp.packet.JID senderJID)
Description copied from interface:DiscoInfoProviderReturns an Iterator (of Element) with the target entity's identities. Each Element must include the categoty, type and name attributes of the entity.- Specified by:
getIdentitiesin interfaceDiscoInfoProvider- Parameters:
name- the recipient JID's name.node- the requested disco node.senderJID- the XMPPAddress of user that sent the disco info request.- Returns:
- an Iterator (of Element) with the target entity's identities.
-
getFeatures
public Iterator<String> getFeatures(String name, String node, org.xmpp.packet.JID senderJID)
Description copied from interface:DiscoInfoProviderReturns an Iterator (of String) with the supported features. The features to include are the features offered and supported protocols by the target entity identified by the requested name and node.- Specified by:
getFeaturesin interfaceDiscoInfoProvider- Parameters:
name- the recipient JID's name.node- the requested disco node.senderJID- the XMPPAddress of user that sent the disco info request.- Returns:
- an Iterator (of String) with the supported features.
-
getExtendedInfo
public org.xmpp.forms.DataForm getExtendedInfo(String name, String node, org.xmpp.packet.JID senderJID)
Description copied from interface:DiscoInfoProviderReturns an XDataForm with the extended information about the entity or null if none. Each bit of information about the entity must be included as a value of a field of the form.- Specified by:
getExtendedInfoin interfaceDiscoInfoProvider- Parameters:
name- the recipient JID's name.node- the requested disco node.senderJID- the XMPPAddress of user that sent the disco info request.- Returns:
- an XDataForm with the extended information about the entity or null if none.
-
getExtendedInfos
public Set<org.xmpp.forms.DataForm> getExtendedInfos(String name, String node, org.xmpp.packet.JID senderJID)
Description copied from interface:DiscoInfoProviderReturns a collection of XDataForm with the extended information about the entity or an empty collection if none. Each bit of information about the entity must be included as a value of a field of the form.- Specified by:
getExtendedInfosin interfaceDiscoInfoProvider- Parameters:
name- the recipient JID's name.node- the requested disco node.senderJID- the XMPPAddress of user that sent the disco info request.- Returns:
- A collection of XDataForms with the extended information about the entity or an empty collection if none.
-
hasInfo
public boolean hasInfo(String name, String node, org.xmpp.packet.JID senderJID)
Description copied from interface:DiscoInfoProviderReturns true if we can provide information related to the requested name and node. For example, if the requested name refers to a non-existant MUC room then the answer will be false. In case that the sender of the disco request is not authorized to discover this information an UnauthorizedException will be thrown.- Specified by:
hasInfoin interfaceDiscoInfoProvider- Parameters:
name- the recipient JID's name.node- the requested disco node.senderJID- the XMPPAddress of user that sent the disco info request.- Returns:
- true if we can provide information related to the requested name and node.
-
getItems
public Iterator<DiscoItem> getItems(String name, String node, org.xmpp.packet.JID senderJID)
Description copied from interface:DiscoItemsProviderReturns an Iterator (of DiscoItem) with the target entity's items or null if none. Each DiscoItem must include a JID attribute and may include the name and node attributes of the entity. In case that the sender of the disco request is not authorized to discover items an UnauthorizedException will be thrown.- Specified by:
getItemsin interfaceDiscoItemsProvider- Parameters:
name- the recipient JID's name.node- the requested disco node.senderJID- the XMPPAddress of user that sent the disco items request.- Returns:
- an Iterator (of DiscoItem) with the target entity's items or null if none.
-
broadcast
public void broadcast(Node node, org.xmpp.packet.Message message, Collection<org.xmpp.packet.JID> jids)
Description copied from interface:PubSubServiceBroadcasts the specified Message containing an event notification to a list of subscribers to the specified node. Each message being sent has to have a unique ID value so that the service can properly track any notification-related errors that may occur.- Specified by:
broadcastin interfacePubSubService- Parameters:
node- the node that triggered the event notification.message- the message containing the event notification.jids- the list of entities to get the event notification.
-
send
public void send(org.xmpp.packet.Packet packet)
Description copied from interface:PubSubServiceSends the specified packet.- Specified by:
sendin interfacePubSubService- Parameters:
packet- the packet to send.
-
sendNotification
public void sendNotification(Node node, org.xmpp.packet.Message message, org.xmpp.packet.JID jid)
Description copied from interface:PubSubServiceSends the specified Message containing an event notification to a specific subscriber of the specified node. The message being sent has to have a unique ID value so that the service can properly track any notification-related errors that may occur.- Specified by:
sendNotificationin interfacePubSubService- Parameters:
node- the node that triggered the event notification.message- the message containing the event notification.jid- the entity to get the event notification.
-
getNode
public Node getNode(Node.UniqueIdentifier nodeID)
Description copied from interface:PubSubServiceReturns theNodethat matches the specified node ID ornullif none was found.- Specified by:
getNodein interfacePubSubService- Parameters:
nodeID- the ID that uniquely identifies the node.- Returns:
- the Node that matches the specified node ID or
nullif none was found.
-
getNodes
public Collection<Node> getNodes()
Description copied from interface:PubSubServiceReturns the collection of nodes hosted by the pubsub service. The collection does not support modifications.- Specified by:
getNodesin interfacePubSubService- Returns:
- the collection of nodes hosted by the pubsub service.
-
addNode
public void addNode(Node node)
Description copied from interface:PubSubServiceAdds an already persistent node to the service.- Specified by:
addNodein interfacePubSubService- Parameters:
node- the persistent node to add to the service.
-
removeNode
public void removeNode(Node.UniqueIdentifier nodeID)
Description copied from interface:PubSubServiceRemoves the specified node from the service. Most probably the node was deleted from the database as well.A future version may support unloading of inactive nodes even though they may still exist in the database.
- Specified by:
removeNodein interfacePubSubService- Parameters:
nodeID- the ID that uniquely identifies the node.
-
getSubscriberPresences
public Map<org.xmpp.packet.JID,Map<org.xmpp.packet.JID,String>> getSubscriberPresences()
Description copied from interface:PubSubServiceReturns a registry of the presence's show value of users that subscribed to a node of the pubsub service and for which the node only delivers notifications for online users or node subscriptions deliver events based on the user presence show value. Offline users will not have an entry in the map. Note: Key-> bare JID and Value-> Map whose key is full JID of connected resource and value is show value of the last received presence.- Specified by:
getSubscriberPresencesin interfacePubSubService- Returns:
- a registry of the presence's show value of users that subscribed to a node of the pubsub service.
-
getManager
public AdHocCommandManager getManager()
Description copied from interface:PubSubServiceReturns the ad-hoc commands manager used for this service.- Specified by:
getManagerin interfacePubSubService- Returns:
- the ad-hoc commands manager used for this service.
-
propertySet
public void propertySet(String property, Map<String,Object> params)
Description copied from interface:PropertyEventListenerA property was set. The parameter mapparamswill contain the the value of the property under the keyvalue.- Specified by:
propertySetin interfacePropertyEventListener- Parameters:
property- the name of the property.params- event parameters.
-
propertyDeleted
public void propertyDeleted(String property, Map<String,Object> params)
Description copied from interface:PropertyEventListenerA property was deleted.- Specified by:
propertyDeletedin interfacePropertyEventListener- Parameters:
property- the name of the property deleted.params- event parameters.
-
xmlPropertySet
public void xmlPropertySet(String property, Map<String,Object> params)
Description copied from interface:PropertyEventListenerAn XML property was set. The parameter mapparamswill contain the the value of the property under the keyvalue.- Specified by:
xmlPropertySetin interfacePropertyEventListener- Parameters:
property- the name of the property.params- event parameters.
-
xmlPropertyDeleted
public void xmlPropertyDeleted(String property, Map<String,Object> params)
Description copied from interface:PropertyEventListenerAn XML property was deleted.- Specified by:
xmlPropertyDeletedin interfacePropertyEventListener- Parameters:
property- the name of the property.params- event parameters.
-
entityCapabilitiesChanged
public void entityCapabilitiesChanged(@Nonnull org.xmpp.packet.JID entity, @Nonnull EntityCapabilities updatedEntityCapabilities, @Nonnull Set<String> featuresAdded, @Nonnull Set<String> featuresRemoved, @Nonnull Set<String> identitiesAdded, @Nonnull Set<String> identitiesRemoved)
Description copied from interface:EntityCapabilitiesListenerInvoked when a change was detected in the capabilities of a particular entity. Apart from supplying the full entity capabilities object, each invocation will also include a the 'delta' of each capability characteristic: the features and identities that are new, or are removed, in the new capabilities, as compared to the previous capabilities for the entity. When no previous capabilities were registered for this entity, all characteristics will be new.- Specified by:
entityCapabilitiesChangedin interfaceEntityCapabilitiesListener- Parameters:
entity- The entity for which CAPS changed.updatedEntityCapabilities- The updated capabilities.featuresAdded- The features that are now part of the capabilities, but were not in the previous capabilities of this entity.featuresRemoved- The features that are now no longer part of the capabilities, but were in the previous capabilities of this entity.identitiesAdded- The identities that are now present in the capabilities, but were not in the previous capabilities of this entity.identitiesRemoved- The identities that are no longer part of the capabilities, but were in the previous capabilities of this entity.
-
-