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: 1598 $
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)
           
static tigase.xml.Element getActiveList(XMPPResourceConnection session)
           
static String getActiveListName(XMPPResourceConnection session)
           
static String getDefaultList(XMPPResourceConnection session)
           
static tigase.xml.Element getList(XMPPResourceConnection session, String list)
           
static tigase.xml.Element getListOld(XMPPResourceConnection session, String list)
           
static String[] getLists(XMPPResourceConnection session)
           
static String listNode(String list)
           
static void setActiveList(XMPPResourceConnection session, String lName)
           
static void setDefaultList(XMPPResourceConnection session, tigase.xml.Element list)
           
 
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

getLists

public static String[] getLists(XMPPResourceConnection session)
                         throws NotAuthorizedException,
                                TigaseDBException
Throws:
NotAuthorizedException
TigaseDBException

listNode

public static String listNode(String list)

setDefaultList

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

getDefaultList

public static String getDefaultList(XMPPResourceConnection session)
                             throws NotAuthorizedException,
                                    TigaseDBException
Throws:
NotAuthorizedException
TigaseDBException

setActiveList

public static void setActiveList(XMPPResourceConnection session,
                                 String lName)
                          throws NotAuthorizedException,
                                 TigaseDBException
Throws:
NotAuthorizedException
TigaseDBException

getActiveList

public static tigase.xml.Element getActiveList(XMPPResourceConnection session)
                                        throws NotAuthorizedException
Throws:
NotAuthorizedException

getActiveListName

public static String getActiveListName(XMPPResourceConnection session)
                                throws NotAuthorizedException
Throws:
NotAuthorizedException

addList

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

getList

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

getListOld

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


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