org.frogx.service.api
Interface MUGPersistenceProvider


public interface MUGPersistenceProvider

The MUGPersistenceProvider defines the data which must be provided by a storage for Multi-User Gaming services.

Author:
Günther Nieß

Method Summary
 java.util.Collection<org.xmpp.packet.JID> getServiceAdmins(java.lang.String subdomain)
          Get a collection of the bare JIDs of administrators of a XMPP component.
 java.lang.String getServiceProperty(java.lang.String subdomain, java.lang.String name)
          Get a property value for a specific Multi-User Gaming component or null if none is present.
 void setServiceProperty(java.lang.String subdomain, java.lang.String name, java.lang.String value)
          Get a property value for a specific Multi-User Gaming component or null if none is present.
 

Method Detail

getServiceAdmins

java.util.Collection<org.xmpp.packet.JID> getServiceAdmins(java.lang.String subdomain)
                                                           throws java.lang.Exception
Get a collection of the bare JIDs of administrators of a XMPP component.

Returns:
A collection of administrators bare JIDs.
Throws:
java.lang.Exception

setServiceProperty

void setServiceProperty(java.lang.String subdomain,
                        java.lang.String name,
                        java.lang.String value)
                        throws java.lang.Exception
Get a property value for a specific Multi-User Gaming component or null if none is present.

Parameters:
subdomain - The subdomain of the Multi-User Gaming component.
name - The name of the property.
value - The value of the property.
Throws:
java.lang.Exception

getServiceProperty

java.lang.String getServiceProperty(java.lang.String subdomain,
                                    java.lang.String name)
                                    throws java.lang.Exception
Get a property value for a specific Multi-User Gaming component or null if none is present.

Parameters:
subdomain - The subdomain of the Multi-User Gaming component.
name - The name of the property.
Returns:
The value of the property or null.
Throws:
java.lang.Exception


Copyright © 2009. All Rights Reserved.