|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.exchange.items.common.dao.ItemDAO
Field Summary | |
protected static java.lang.String |
FILE_ENCODING
|
protected static int |
INITIAL_SIZE_SBUFFER
|
protected static java.lang.String |
NEW_LINE
|
protected static java.lang.String |
PROP_NO_FOLDER
|
protected static java.lang.String |
TAG_CREATION_DATE
|
protected static java.lang.String |
TAG_HREF
|
protected static java.lang.String |
TAG_IS_FOLDER
|
static java.lang.String |
TAG_RESPONSE
|
protected static java.lang.String |
WEBDAV_HEADER_PROPPATCH
|
protected static java.lang.String |
WEBDAV_HEADER_REMOVE
|
protected static java.lang.String |
WEBDAV_HEADER_SELECT
|
Constructor Summary | |
ItemDAO()
|
|
ItemDAO(java.lang.String host,
int port,
java.lang.String exchangeServer)
|
Method Summary | |
void |
addItems(Item[] items,
java.lang.String sourceURI,
long principal)
add local items |
protected void |
checkResponseStatus(int status)
Check response message from Exchange server |
void |
deleteItems(Item[] items,
java.lang.String sourceURI,
long principal)
delete local items |
static java.lang.String |
getClause(java.lang.String[] ids)
Build a clause to webdav select request between ids item array |
int |
getExchangeAccessStatus(java.lang.String exchangeServerName,
java.lang.String userName,
java.lang.String credentials)
get all sourceURI type items from Exchange Server |
java.lang.String |
getHref(java.lang.String id,
long principal,
java.lang.String sourceURI)
get href |
static java.lang.String |
getIdFromReplUid(java.lang.String replUid)
Make a id from replid webdavtag. |
Item[] |
getLocalItems(java.lang.String sourceURI,
long principal)
get local items |
protected java.lang.String |
getResourceFromExchangeFolder(java.lang.String uri)
|
protected java.lang.String |
getServerFromExchangeFolder(java.lang.String uri)
|
protected int |
getStatusFromResponse(java.lang.String msg)
get status from response message |
Item[] |
getTwins(long crc,
long principalId,
java.lang.String sourceURI)
get twin |
void |
updateItems(Item[] items,
java.lang.String sourceURI,
long principal)
add local items |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final int INITIAL_SIZE_SBUFFER
protected static final java.lang.String FILE_ENCODING
protected static final java.lang.String WEBDAV_HEADER_PROPPATCH
protected static final java.lang.String WEBDAV_HEADER_REMOVE
protected static final java.lang.String WEBDAV_HEADER_SELECT
protected static final java.lang.String TAG_HREF
protected static final java.lang.String TAG_CREATION_DATE
protected static final java.lang.String TAG_IS_FOLDER
protected static final java.lang.String PROP_NO_FOLDER
protected static final java.lang.String NEW_LINE
public static final java.lang.String TAG_RESPONSE
Constructor Detail |
public ItemDAO() throws DataAccessException
public ItemDAO(java.lang.String host, int port, java.lang.String exchangeServer) throws DataAccessException
Method Detail |
public Item[] getLocalItems(java.lang.String sourceURI, long principal) throws DataAccessException
sourceURI
- principal
-
DataAccessException
public java.lang.String getHref(java.lang.String id, long principal, java.lang.String sourceURI) throws DataAccessException
id
- principal
- sourceURI
-
DataAccessException
public void addItems(Item[] items, java.lang.String sourceURI, long principal) throws DataAccessException
items
- sourceURI
- principal
-
DataAccessException
public void updateItems(Item[] items, java.lang.String sourceURI, long principal) throws DataAccessException
items
- sourceURI
- principal
-
DataAccessException
public void deleteItems(Item[] items, java.lang.String sourceURI, long principal) throws DataAccessException
sourceURI
- principal
-
DataAccessException
public Item[] getTwins(long crc, long principalId, java.lang.String sourceURI) throws DataAccessException
crc
- principalId
- sourceURI
-
DataAccessException
public int getExchangeAccessStatus(java.lang.String exchangeServerName, java.lang.String userName, java.lang.String credentials) throws DataAccessException
exchangeServerName
- userName
- credentials
-
DataAccessException
public static java.lang.String getClause(java.lang.String[] ids)
ids
-
public static java.lang.String getIdFromReplUid(java.lang.String replUid) throws XmlParseException
replUid
-
XmlParseException
protected int getStatusFromResponse(java.lang.String msg) throws ExchangeAccessException
msg
-
ExchangeAccessException
- in case of other errorsprotected void checkResponseStatus(int status) throws AuthenticationException, ExchangeAccessException, com.funambol.framework.server.store.NotFoundException
status
- the status to be checked
AuthenticationException
- in case the request has not been
authenticated by the server
ExchangeAccessException
- in case of other errors
com.funambol.framework.server.store.NotFoundException
protected java.lang.String getServerFromExchangeFolder(java.lang.String uri)
protected java.lang.String getResourceFromExchangeFolder(java.lang.String uri)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |