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

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 java.lang.String getActiveListName(XMPPResourceConnection session)
                                          throws NotAuthorizedException
Method description

Parameters:
session -
Returns:
Throws:
NotAuthorizedException

getDefaultList

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

Parameters:
session -
Returns:
Throws:
NotAuthorizedException
TigaseDBException

getList

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

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

getListOld

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

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

getLists

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

Parameters:
session -
Returns:
Throws:
NotAuthorizedException
TigaseDBException

listNode

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

Parameters:
list -
Returns:

setActiveList

public static void setActiveList(XMPPResourceConnection session,
                                 java.lang.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 © 2010 Tigase. All Rights Reserved.