You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tasks/com/todoroo/astrid/sync/SyncMetadataService.html

546 lines
25 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Thu Dec 22 20:39:05 PST 2011 -->
<TITLE>
SyncMetadataService
</TITLE>
<META NAME="date" CONTENT="2011-12-22">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="SyncMetadataService";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SyncMetadataService.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/todoroo/astrid/sync/SyncContainer.html" title="class in com.todoroo.astrid.sync"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/todoroo/astrid/sync/SyncProvider.html" title="class in com.todoroo.astrid.sync"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?com/todoroo/astrid/sync/SyncMetadataService.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="SyncMetadataService.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.todoroo.astrid.sync</FONT>
<BR>
Class SyncMetadataService&lt;TYPE extends <A HREF="../../../../com/todoroo/astrid/sync/SyncContainer.html" title="class in com.todoroo.astrid.sync">SyncContainer</A>&gt;</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.todoroo.astrid.sync.SyncMetadataService&lt;TYPE&gt;</B>
</PRE>
<HR>
<DL>
<DT><PRE>public abstract class <B>SyncMetadataService&lt;TYPE extends <A HREF="../../../../com/todoroo/astrid/sync/SyncContainer.html" title="class in com.todoroo.astrid.sync">SyncContainer</A>&gt;</B><DT>extends java.lang.Object</DL>
</PRE>
<P>
<HR>
<P>
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/todoroo/astrid/sync/SyncMetadataService.html#TAG_KEY">TAG_KEY</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;metadata key of tag add-on</TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/todoroo/astrid/sync/SyncMetadataService.html#SyncMetadataService(android.content.Context)">SyncMetadataService</A></B>(android.content.Context&nbsp;context)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/todoroo/astrid/sync/SyncMetadataService.html#clearMetadata()">clearMetadata</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clears metadata information.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../com/todoroo/astrid/sync/SyncMetadataService.html" title="type parameter in SyncMetadataService">TYPE</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/todoroo/astrid/sync/SyncMetadataService.html#createContainerFromLocalTask(com.todoroo.astrid.data.Task, java.util.ArrayList)">createContainerFromLocalTask</A></B>(<A HREF="../../../../com/todoroo/astrid/data/Task.html" title="class in com.todoroo.astrid.data">Task</A>&nbsp;task,
java.util.ArrayList&lt;<A HREF="../../../../com/todoroo/astrid/data/Metadata.html" title="class in com.todoroo.astrid.data">Metadata</A>&gt;&nbsp;metadata)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;create a task container based on the given data</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/todoroo/astrid/sync/SyncMetadataService.html#findLocalMatch(TYPE)">findLocalMatch</A></B>(<A HREF="../../../../com/todoroo/astrid/sync/SyncMetadataService.html" title="type parameter in SyncMetadataService">TYPE</A>&nbsp;remoteTask)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Searches for a local task with same remote id, updates this task's id</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/todoroo/andlib/data/TodorooCursor.html" title="class in com.todoroo.andlib.data">TodorooCursor</A>&lt;<A HREF="../../../../com/todoroo/astrid/data/Task.html" title="class in com.todoroo.astrid.data">Task</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/todoroo/astrid/sync/SyncMetadataService.html#getLocallyCreated(com.todoroo.andlib.data.Property...)">getLocallyCreated</A></B>(<A HREF="../../../../com/todoroo/andlib/data/Property.html" title="class in com.todoroo.andlib.data">Property</A>&lt;?&gt;...&nbsp;properties)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets tasks that were created since last sync</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/todoroo/andlib/data/TodorooCursor.html" title="class in com.todoroo.andlib.data">TodorooCursor</A>&lt;<A HREF="../../../../com/todoroo/astrid/data/Task.html" title="class in com.todoroo.astrid.data">Task</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/todoroo/astrid/sync/SyncMetadataService.html#getLocallyUpdated(com.todoroo.andlib.data.Property...)">getLocallyUpdated</A></B>(<A HREF="../../../../com/todoroo/andlib/data/Property.html" title="class in com.todoroo.andlib.data">Property</A>&lt;?&gt;...&nbsp;properties)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets tasks that were modified since last sync</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../com/todoroo/andlib/sql/Criterion.html" title="class in com.todoroo.andlib.sql">Criterion</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/todoroo/astrid/sync/SyncMetadataService.html#getLocalMatchCriteria(TYPE)">getLocalMatchCriteria</A></B>(<A HREF="../../../../com/todoroo/astrid/sync/SyncMetadataService.html" title="type parameter in SyncMetadataService">TYPE</A>&nbsp;remoteTask)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../com/todoroo/andlib/sql/Criterion.html" title="class in com.todoroo.andlib.sql">Criterion</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/todoroo/astrid/sync/SyncMetadataService.html#getMetadataCriteria()">getMetadataCriteria</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/todoroo/astrid/sync/SyncMetadataService.html#getMetadataKey()">getMetadataKey</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../com/todoroo/andlib/sql/Criterion.html" title="class in com.todoroo.andlib.sql">Criterion</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/todoroo/astrid/sync/SyncMetadataService.html#getMetadataWithRemoteId()">getMetadataWithRemoteId</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/todoroo/astrid/data/Metadata.html" title="class in com.todoroo.astrid.data">Metadata</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/todoroo/astrid/sync/SyncMetadataService.html#getTaskMetadata(long)">getTaskMetadata</A></B>(long&nbsp;taskId)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads metadata out of a task</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../../com/todoroo/astrid/sync/SyncProviderUtilities.html" title="class in com.todoroo.astrid.sync">SyncProviderUtilities</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/todoroo/astrid/sync/SyncMetadataService.html#getUtilities()">getUtilities</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/todoroo/astrid/sync/SyncMetadataService.html" title="type parameter in SyncMetadataService">TYPE</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/todoroo/astrid/sync/SyncMetadataService.html#readTaskAndMetadata(com.todoroo.andlib.data.TodorooCursor)">readTaskAndMetadata</A></B>(<A HREF="../../../../com/todoroo/andlib/data/TodorooCursor.html" title="class in com.todoroo.andlib.data">TodorooCursor</A>&lt;<A HREF="../../../../com/todoroo/astrid/data/Task.html" title="class in com.todoroo.astrid.data">Task</A>&gt;&nbsp;taskCursor)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads a task and its metadata</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/todoroo/astrid/sync/SyncMetadataService.html#saveTaskAndMetadata(TYPE)">saveTaskAndMetadata</A></B>(<A HREF="../../../../com/todoroo/astrid/sync/SyncMetadataService.html" title="type parameter in SyncMetadataService">TYPE</A>&nbsp;task)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Saves a task and its metadata</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="TAG_KEY"><!-- --></A><H3>
TAG_KEY</H3>
<PRE>
public static final java.lang.String <B>TAG_KEY</B></PRE>
<DL>
<DD>metadata key of tag add-on
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#com.todoroo.astrid.sync.SyncMetadataService.TAG_KEY">Constant Field Values</A></DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="SyncMetadataService(android.content.Context)"><!-- --></A><H3>
SyncMetadataService</H3>
<PRE>
public <B>SyncMetadataService</B>(android.content.Context&nbsp;context)</PRE>
<DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="getMetadataKey()"><!-- --></A><H3>
getMetadataKey</H3>
<PRE>
public abstract java.lang.String <B>getMetadataKey</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>metadata key identifying this sync provider's metadata</DL>
</DD>
</DL>
<HR>
<A NAME="getUtilities()"><!-- --></A><H3>
getUtilities</H3>
<PRE>
public abstract <A HREF="../../../../com/todoroo/astrid/sync/SyncProviderUtilities.html" title="class in com.todoroo.astrid.sync">SyncProviderUtilities</A> <B>getUtilities</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>sync provider utilities</DL>
</DD>
</DL>
<HR>
<A NAME="createContainerFromLocalTask(com.todoroo.astrid.data.Task, java.util.ArrayList)"><!-- --></A><H3>
createContainerFromLocalTask</H3>
<PRE>
public abstract <A HREF="../../../../com/todoroo/astrid/sync/SyncMetadataService.html" title="type parameter in SyncMetadataService">TYPE</A> <B>createContainerFromLocalTask</B>(<A HREF="../../../../com/todoroo/astrid/data/Task.html" title="class in com.todoroo.astrid.data">Task</A>&nbsp;task,
java.util.ArrayList&lt;<A HREF="../../../../com/todoroo/astrid/data/Metadata.html" title="class in com.todoroo.astrid.data">Metadata</A>&gt;&nbsp;metadata)</PRE>
<DL>
<DD>create a task container based on the given data
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getMetadataCriteria()"><!-- --></A><H3>
getMetadataCriteria</H3>
<PRE>
public abstract <A HREF="../../../../com/todoroo/andlib/sql/Criterion.html" title="class in com.todoroo.andlib.sql">Criterion</A> <B>getMetadataCriteria</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>criterion for matching all metadata keys that your provider synchronizes</DL>
</DD>
</DL>
<HR>
<A NAME="getLocalMatchCriteria(com.todoroo.astrid.sync.SyncContainer)"><!-- --></A><A NAME="getLocalMatchCriteria(TYPE)"><!-- --></A><H3>
getLocalMatchCriteria</H3>
<PRE>
public abstract <A HREF="../../../../com/todoroo/andlib/sql/Criterion.html" title="class in com.todoroo.andlib.sql">Criterion</A> <B>getLocalMatchCriteria</B>(<A HREF="../../../../com/todoroo/astrid/sync/SyncMetadataService.html" title="type parameter in SyncMetadataService">TYPE</A>&nbsp;remoteTask)</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>criterion for finding local matches of sync container in task database</DL>
</DD>
</DL>
<HR>
<A NAME="getMetadataWithRemoteId()"><!-- --></A><H3>
getMetadataWithRemoteId</H3>
<PRE>
public abstract <A HREF="../../../../com/todoroo/andlib/sql/Criterion.html" title="class in com.todoroo.andlib.sql">Criterion</A> <B>getMetadataWithRemoteId</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>criterion for matching metadata that indicate remote task exists</DL>
</DD>
</DL>
<HR>
<A NAME="clearMetadata()"><!-- --></A><H3>
clearMetadata</H3>
<PRE>
public void <B>clearMetadata</B>()</PRE>
<DL>
<DD>Clears metadata information. Used when user logs out of sync provider
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getLocallyCreated(com.todoroo.andlib.data.Property...)"><!-- --></A><H3>
getLocallyCreated</H3>
<PRE>
public <A HREF="../../../../com/todoroo/andlib/data/TodorooCursor.html" title="class in com.todoroo.andlib.data">TodorooCursor</A>&lt;<A HREF="../../../../com/todoroo/astrid/data/Task.html" title="class in com.todoroo.astrid.data">Task</A>&gt; <B>getLocallyCreated</B>(<A HREF="../../../../com/todoroo/andlib/data/Property.html" title="class in com.todoroo.andlib.data">Property</A>&lt;?&gt;...&nbsp;properties)</PRE>
<DL>
<DD>Gets tasks that were created since last sync
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>properties</CODE> -
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>
<A NAME="getLocallyUpdated(com.todoroo.andlib.data.Property...)"><!-- --></A><H3>
getLocallyUpdated</H3>
<PRE>
public <A HREF="../../../../com/todoroo/andlib/data/TodorooCursor.html" title="class in com.todoroo.andlib.data">TodorooCursor</A>&lt;<A HREF="../../../../com/todoroo/astrid/data/Task.html" title="class in com.todoroo.astrid.data">Task</A>&gt; <B>getLocallyUpdated</B>(<A HREF="../../../../com/todoroo/andlib/data/Property.html" title="class in com.todoroo.andlib.data">Property</A>&lt;?&gt;...&nbsp;properties)</PRE>
<DL>
<DD>Gets tasks that were modified since last sync
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>properties</CODE> -
<DT><B>Returns:</B><DD>null if never sync'd</DL>
</DD>
</DL>
<HR>
<A NAME="findLocalMatch(com.todoroo.astrid.sync.SyncContainer)"><!-- --></A><A NAME="findLocalMatch(TYPE)"><!-- --></A><H3>
findLocalMatch</H3>
<PRE>
public void <B>findLocalMatch</B>(<A HREF="../../../../com/todoroo/astrid/sync/SyncMetadataService.html" title="type parameter in SyncMetadataService">TYPE</A>&nbsp;remoteTask)</PRE>
<DL>
<DD>Searches for a local task with same remote id, updates this task's id
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>remoteTask</CODE> - </DL>
</DD>
</DL>
<HR>
<A NAME="saveTaskAndMetadata(com.todoroo.astrid.sync.SyncContainer)"><!-- --></A><A NAME="saveTaskAndMetadata(TYPE)"><!-- --></A><H3>
saveTaskAndMetadata</H3>
<PRE>
public void <B>saveTaskAndMetadata</B>(<A HREF="../../../../com/todoroo/astrid/sync/SyncMetadataService.html" title="type parameter in SyncMetadataService">TYPE</A>&nbsp;task)</PRE>
<DL>
<DD>Saves a task and its metadata
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>task</CODE> - </DL>
</DD>
</DL>
<HR>
<A NAME="readTaskAndMetadata(com.todoroo.andlib.data.TodorooCursor)"><!-- --></A><H3>
readTaskAndMetadata</H3>
<PRE>
public <A HREF="../../../../com/todoroo/astrid/sync/SyncMetadataService.html" title="type parameter in SyncMetadataService">TYPE</A> <B>readTaskAndMetadata</B>(<A HREF="../../../../com/todoroo/andlib/data/TodorooCursor.html" title="class in com.todoroo.andlib.data">TodorooCursor</A>&lt;<A HREF="../../../../com/todoroo/astrid/data/Task.html" title="class in com.todoroo.astrid.data">Task</A>&gt;&nbsp;taskCursor)</PRE>
<DL>
<DD>Reads a task and its metadata
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>task</CODE> -
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>
<A NAME="getTaskMetadata(long)"><!-- --></A><H3>
getTaskMetadata</H3>
<PRE>
public <A HREF="../../../../com/todoroo/astrid/data/Metadata.html" title="class in com.todoroo.astrid.data">Metadata</A> <B>getTaskMetadata</B>(long&nbsp;taskId)</PRE>
<DL>
<DD>Reads metadata out of a task
<P>
<DD><DL>
<DT><B>Returns:</B><DD>null if no metadata found</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SyncMetadataService.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/todoroo/astrid/sync/SyncContainer.html" title="class in com.todoroo.astrid.sync"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/todoroo/astrid/sync/SyncProvider.html" title="class in com.todoroo.astrid.sync"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?com/todoroo/astrid/sync/SyncMetadataService.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="SyncMetadataService.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>