org.apache.abdera.ext.sharing
Class SharingHelper
java.lang.Object
org.apache.abdera.ext.sharing.SharingHelper
public class SharingHelper
- extends Object
Method Summary |
static Entry |
createEntry(Abdera abdera,
String by)
|
static Entry |
createEntry(Abdera abdera,
String by,
Feed feed)
|
static void |
deleteEntry(Entry entry,
String by)
|
static
|
getSharing(T source)
|
static
|
getSharing(T source,
boolean create)
|
static Sync |
getSync(Entry entry)
|
static Sync |
getSync(Entry entry,
boolean create)
|
static Map<String,Entry> |
getSyncIdMap(Feed feed)
|
static Unpublished |
getUnpublished(Feed feed)
|
static Unpublished |
getUnpublished(Feed feed,
boolean create)
|
static boolean |
hasConflicts(Entry entry)
|
static
|
hasSharing(T source)
|
static boolean |
hasSync(Entry entry)
|
static boolean |
isSubsumed(History h1,
History h2)
|
static boolean |
isSubsumed(Sync s1,
Sync s2)
|
protected static boolean |
isTrue(String value)
|
static boolean |
isValidEndpointIdentifier(String id)
|
static void |
mergeFeeds(Feed source,
Feed dest)
|
static Sync |
pickWinner(Sync s1,
Sync s2)
|
static void |
publish(Feed feed,
Date expires,
boolean initial)
|
static Entry |
republish(Entry entry)
|
static Entry |
resolveConflicts(Entry entry,
SharingHelper.ConflictResolver resolver,
String by)
|
static Entry |
unpublish(Entry entry)
|
static void |
updateEntry(Entry entry,
String by)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSENS
public static final String SSENS
- See Also:
- Constant Field Values
SSEPFX
public static final String SSEPFX
- See Also:
- Constant Field Values
SSE_SHARING
public static final QName SSE_SHARING
SSE_RELATED
public static final QName SSE_RELATED
SSE_CONFLICTS
public static final QName SSE_CONFLICTS
SSE_HISTORY
public static final QName SSE_HISTORY
SSE_SYNC
public static final QName SSE_SYNC
SSE_UNPUBLISHED
public static final QName SSE_UNPUBLISHED
SharingHelper
public SharingHelper()
isTrue
protected static boolean isTrue(String value)
getSharing
public static <T extends Source> Sharing getSharing(T source)
getSharing
public static <T extends Source> Sharing getSharing(T source,
boolean create)
hasSharing
public static <T extends Source> boolean hasSharing(T source)
getUnpublished
public static Unpublished getUnpublished(Feed feed)
getUnpublished
public static Unpublished getUnpublished(Feed feed,
boolean create)
getSync
public static Sync getSync(Entry entry)
getSync
public static Sync getSync(Entry entry,
boolean create)
hasSync
public static boolean hasSync(Entry entry)
createEntry
public static Entry createEntry(Abdera abdera,
String by)
createEntry
public static Entry createEntry(Abdera abdera,
String by,
Feed feed)
deleteEntry
public static void deleteEntry(Entry entry,
String by)
updateEntry
public static void updateEntry(Entry entry,
String by)
getSyncIdMap
public static Map<String,Entry> getSyncIdMap(Feed feed)
isSubsumed
public static boolean isSubsumed(Sync s1,
Sync s2)
isSubsumed
public static boolean isSubsumed(History h1,
History h2)
pickWinner
public static Sync pickWinner(Sync s1,
Sync s2)
mergeFeeds
public static void mergeFeeds(Feed source,
Feed dest)
resolveConflicts
public static Entry resolveConflicts(Entry entry,
SharingHelper.ConflictResolver resolver,
String by)
unpublish
public static Entry unpublish(Entry entry)
republish
public static Entry republish(Entry entry)
publish
public static void publish(Feed feed,
Date expires,
boolean initial)
hasConflicts
public static boolean hasConflicts(Entry entry)
isValidEndpointIdentifier
public static boolean isValidEndpointIdentifier(String id)
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.