tigase.xmpp.impl
Class Privacy

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

public class Privacy
extends java.lang.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 java.lang.String ACTION
           
protected static java.lang.String ACTIVE
           
protected static java.lang.String DEFAULT
           
protected static java.lang.String ITEM
           
protected static java.lang.String LIST
           
protected static java.lang.String NAME
           
protected static java.lang.String ORDER
           
protected static java.lang.String PRIVACY
           
protected static java.lang.String PRIVACY_LIST
           
protected static java.lang.String STANZAS
           
protected static java.lang.String TYPE
           
protected static java.lang.String VALUE
           
 
Constructor Summary
Privacy()
           
 
Method Summary
static void addList(XMPPResourceConnection session, tigase.xml.Element list)
           
static tigase.xml.Element getActiveList(XMPPResourceConnection session)
           
static java.lang.String getActiveListName(XMPPResourceConnection session)
           
static java.lang.String getDefaultList(XMPPResourceConnection session)
           
static tigase.xml.Element getList(XMPPResourceConnection session, java.lang.String list)
           
static tigase.xml.Element getListOld(XMPPResourceConnection session, java.lang.String list)
           
static java.lang.String[] getLists(XMPPResourceConnection session)
           
static java.lang.String listNode(java.lang.String list)
           
static void setActiveList(XMPPResourceConnection session, java.lang.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 java.lang.String PRIVACY
See Also:
Constant Field Values

LIST

protected static final java.lang.String LIST
See Also:
Constant Field Values

ITEM

protected static final java.lang.String ITEM
See Also:
Constant Field Values

NAME

protected static final java.lang.String NAME
See Also:
Constant Field Values

ORDER

protected static final java.lang.String ORDER
See Also:
Constant Field Values

TYPE

protected static final java.lang.String TYPE
See Also:
Constant Field Values

VALUE

protected static final java.lang.String VALUE
See Also:
Constant Field Values

ACTION

protected static final java.lang.String ACTION
See Also:
Constant Field Values

STANZAS

protected static final java.lang.String STANZAS
See Also:
Constant Field Values

DEFAULT

protected static final java.lang.String DEFAULT
See Also:
Constant Field Values

ACTIVE

protected static final java.lang.String ACTIVE
See Also:
Constant Field Values

PRIVACY_LIST

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

Privacy

public Privacy()
Method Detail

getLists

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

listNode

public static java.lang.String listNode(java.lang.String list)

setDefaultList

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

getDefaultList

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

setActiveList

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

getActiveList

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

getActiveListName

public static java.lang.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,
                                         java.lang.String list)
                                  throws NotAuthorizedException,
                                         TigaseDBException
Throws:
NotAuthorizedException
TigaseDBException

getListOld

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


Copyright © 2009 Tigase. All Rights Reserved.