tigase.xmpp.impl
Class Privacy

java.lang.Object
  extended by tigase.xmpp.impl.Privacy

public class Privacy
extends Object

Class defining data structure for privacy lists. Sample data storage: List name: Item order: Created: Mon Oct 9 20:50:09 2006

Version:
$Rev$
Author:
Artur Hefczyc

Field Summary
protected static String ACTION
           
protected static String ACTIVE
           
protected static String DEFAULT
           
protected static String ITEM
           
protected static String LIST
           
protected static String NAME
           
protected static String ORDER
           
protected static String PRIVACY
           
protected static String PRIVACY_LIST
           
protected static String STANZAS
           
protected static String TYPE
           
protected static String VALUE
           
 
Constructor Summary
Privacy()
           
 
Method Summary
static void addList(XMPPResourceConnection session, tigase.xml.Element list)
          Method description
static tigase.xml.Element getActiveList(XMPPResourceConnection session)
          Method description
static String getActiveListName(XMPPResourceConnection session)
          Method description
static String getDefaultList(XMPPResourceConnection session)
          Method description
static tigase.xml.Element getList(XMPPResourceConnection session, String list)
          Method description
static tigase.xml.Element getListOld(XMPPResourceConnection session, String list)
          Method description
static String[] getLists(XMPPResourceConnection session)
          Method description
static String listNode(String list)
          Method description
static void setActiveList(XMPPResourceConnection session, String lName)
          Method description
static void setDefaultList(XMPPResourceConnection session, tigase.xml.Element list)
          Method description
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRIVACY

protected static final String PRIVACY
See Also:
Constant Field Values

LIST

protected static final String LIST
See Also:
Constant Field Values

ITEM

protected static final String ITEM
See Also:
Constant Field Values

NAME

protected static final String NAME
See Also:
Constant Field Values

ORDER

protected static final String ORDER
See Also:
Constant Field Values

TYPE

protected static final String TYPE
See Also:
Constant Field Values

VALUE

protected static final String VALUE
See Also:
Constant Field Values

ACTION

protected static final String ACTION
See Also:
Constant Field Values

STANZAS

protected static final String STANZAS
See Also:
Constant Field Values

DEFAULT

protected static final String DEFAULT
See Also:
Constant Field Values

ACTIVE

protected static final String ACTIVE
See Also:
Constant Field Values

PRIVACY_LIST

protected static final String PRIVACY_LIST
See Also:
Constant Field Values
Constructor Detail

Privacy

public Privacy()
Method Detail

addList

public static void addList(XMPPResourceConnection session,
                           tigase.xml.Element list)
                    throws NotAuthorizedException,
                           TigaseDBException
Method description

Parameters:
session -
list -
Throws:
NotAuthorizedException
TigaseDBException

getActiveList

public static tigase.xml.Element getActiveList(XMPPResourceConnection session)
                                        throws NotAuthorizedException
Method description

Parameters:
session -
Returns:
Throws:
NotAuthorizedException

getActiveListName

public static String getActiveListName(XMPPResourceConnection session)
                                throws NotAuthorizedException
Method description

Parameters:
session -
Returns:
Throws:
NotAuthorizedException

getDefaultList

public static String getDefaultList(XMPPResourceConnection session)
                             throws NotAuthorizedException,
                                    TigaseDBException
Method description

Parameters:
session -
Returns:
Throws:
NotAuthorizedException
TigaseDBException

getList

public static tigase.xml.Element getList(XMPPResourceConnection session,
                                         String list)
                                  throws NotAuthorizedException,
                                         TigaseDBException
Method description

Parameters:
session -
list -
Returns:
Throws:
NotAuthorizedException
TigaseDBException

getListOld

public static tigase.xml.Element getListOld(XMPPResourceConnection session,
                                            String list)
                                     throws NotAuthorizedException,
                                            TigaseDBException
Method description

Parameters:
session -
list -
Returns:
Throws:
NotAuthorizedException
TigaseDBException

getLists

public static String[] getLists(XMPPResourceConnection session)
                         throws NotAuthorizedException,
                                TigaseDBException
Method description

Parameters:
session -
Returns:
Throws:
NotAuthorizedException
TigaseDBException

listNode

public static String listNode(String list)
Method description

Parameters:
list -
Returns:

setActiveList

public static void setActiveList(XMPPResourceConnection session,
                                 String lName)
                          throws NotAuthorizedException,
                                 TigaseDBException
Method description

Parameters:
session -
lName -
Throws:
NotAuthorizedException
TigaseDBException

setDefaultList

public static void setDefaultList(XMPPResourceConnection session,
                                  tigase.xml.Element list)
                           throws NotAuthorizedException,
                                  TigaseDBException
Method description

Parameters:
session -
list -
Throws:
NotAuthorizedException
TigaseDBException


Copyright © 2001-2006 Tigase Developers Team. All rights Reserved.