org.apache.abdera.ext.features
Class FeaturesHelper

java.lang.Object
  extended by org.apache.abdera.ext.features.FeaturesHelper

public final class FeaturesHelper
extends Object

Implementation of the current APP Features Draft (http://www.ietf.org/internet-drafts/draft-snell-atompub-feature-08.txt)


Nested Class Summary
static class FeaturesHelper.Status
           
 
Field Summary
static QName FEATURE
           
static String FEATURE_FILTERS_MARKUP
          Indicates that the collection will remove markup that is considered potentially unsafe from the entry examples of the type of markup that would be removed include scripts and embed
static String FEATURE_HIDES_PERSON_EMAIL
           
static String FEATURE_HIDES_PERSON_URI
           
static String FEATURE_IGNORES_AUTHORS
           
static String FEATURE_IGNORES_BIDI
          Indicates that the collection ignores the use of the Atom Bidi Attribute.
static String FEATURE_IGNORES_CATEGORIES
           
static String FEATURE_IGNORES_CONTRIBUTORS
           
static String FEATURE_IGNORES_DRAFTS
           
static String FEATURE_IGNORES_GEO
          Indicates that the collection ignores the use of Geo extensions (see the org.apache.abdera.ext.geo Package)
static String FEATURE_IGNORES_LANGUAGE
           
static String FEATURE_IGNORES_LINKS
           
static String FEATURE_IGNORES_RIGHTS
           
static String FEATURE_IGNORES_SHARING
          Indicates that the collection ignores the use of the Simple Sharing Extensions (see the org.apache.abdera.ext.sharing Package)
static String FEATURE_IGNORES_SIGNATURE
          Indicates that the collection will ignore XML digital signatures contained in member resources
static String FEATURE_IGNORES_SLUG
           
static String FEATURE_IGNORES_SUMMARY
           
static String FEATURE_IGNORES_THREADING
           
static String FEATURE_MULTIPLE_CATEGORIES
           
static String FEATURE_PRESERVE_SIGNATURE
          Indicates that the collection will preserve XML digital signatures contained in member resources
static String FEATURE_PRESERVES_AUTHORS
           
static String FEATURE_PRESERVES_CATEGORIES
           
static String FEATURE_PRESERVES_CONTRIBUTORS
           
static String FEATURE_PRESERVES_DATES
           
static String FEATURE_PRESERVES_EXTENSIONS
           
static String FEATURE_PRESERVES_ID
           
static String FEATURE_PRESERVES_INFOSET
           
static String FEATURE_PRESERVES_LANGUAGE
           
static String FEATURE_PRESERVES_LINKS
           
static String FEATURE_PRESERVES_RIGHTS
           
static String FEATURE_PRESERVES_SUMMARY
           
static String FEATURE_PRESERVES_THREADING
           
static String FEATURE_REQUIRES_BIDI
          Indicates that the collection requires the use of the Atom Bidi Attribute.
static String FEATURE_REQUIRES_BINARY_CONTENT
           
static String FEATURE_REQUIRES_CONDITIONALS
           
static String FEATURE_REQUIRES_GEO
          Indicates that the collection requires the use of Geo extensions (see the org.apache.abdera.ext.geo Package)
static String FEATURE_REQUIRES_GOOGLELOGIN
          Indicates that the collection requires the GoogleLogin auth scheme (see the org.apache.abdera.ext.gdata Package)
static String FEATURE_REQUIRES_HTML_CONTENT
           
static String FEATURE_REQUIRES_HTML_TEXT
           
static String FEATURE_REQUIRES_PERSON_EMAIL
           
static String FEATURE_REQUIRES_PERSON_URI
           
static String FEATURE_REQUIRES_REF_CONTENT
           
static String FEATURE_REQUIRES_SHARING
          Indicates that the collection requires the use of the Simple Sharing Extensions (see the org.apache.abdera.ext.sharing Package)
static String FEATURE_REQUIRES_SIGNATURE
          Indicates that the collection requires member resources to contain valid XML digital signatures
static String FEATURE_REQUIRES_TEXT_CONTENT
           
static String FEATURE_REQUIRES_TEXT_TEXT
           
static String FEATURE_REQUIRES_THREADING
           
static String FEATURE_REQUIRES_WSSE
          Indicates that the collection requires the WSSE auth scheme (see the org.apache.abdera.ext.wsse Package)
static String FEATURE_REQUIRES_XHTML_CONTENT
           
static String FEATURE_REQUIRES_XHTML_TEXT
           
static String FEATURE_REQUIRES_XML_CONTENT
           
static String FEATURE_SCHEDULED_PUBLISHING
           
static String FEATURE_SIGNED_RESPONSE
          Indicates that the collection will add it's own digital signature to the collection feed and member resources
static String FEATURE_SUPPORTS_BIDI
          Indicates that the collection supports the use of the Atom Bidi Attribute.
static String FEATURE_SUPPORTS_BINARY_CONTENT
           
static String FEATURE_SUPPORTS_CONDITIONALS
           
static String FEATURE_SUPPORTS_DRAFTS
           
static String FEATURE_SUPPORTS_GEO
          Indicates that the collection supports the use of Geo extensions (see the org.apache.abdera.ext.geo Package)
static String FEATURE_SUPPORTS_GOOGLELOGIN
          Indicates that the collection supports the GoogleLogin auth scheme (see the org.apache.abdera.ext.gdata Package)
static String FEATURE_SUPPORTS_HTML_CONTENT
           
static String FEATURE_SUPPORTS_HTML_TEXT
           
static String FEATURE_SUPPORTS_REF_CONTENT
           
static String FEATURE_SUPPORTS_SHARING
          Indicates that the collection supports the use of the Simple Sharing Extensions (see the org.apache.abdera.ext.sharing Package)
static String FEATURE_SUPPORTS_SIGNATURE
          Indicates that the collection will support XML digital signatures contained in member resources but may not preserve those signatures
static String FEATURE_SUPPORTS_TEXT_CONTENT
           
static String FEATURE_SUPPORTS_TEXT_TEXT
           
static String FEATURE_SUPPORTS_WSSE
          Indicates that the collection supports the WSSE auth scheme (see the org.apache.abdera.ext.wsse Package)
static String FEATURE_SUPPORTS_XHTML_CONTENT
           
static String FEATURE_SUPPORTS_XHTML_TEXT
           
static String FEATURE_SUPPORTS_XML_CONTENT
           
static String FEATURE_USES_SLUG
           
static QName FEATURES
           
static String FNS
           
static QName TYPE
           
 
Method Summary
static Features addFeaturesElement(Collection collection)
           
static void flushCachedFeatures()
           
static Feature getFeature(Collection collection, String feature)
           
static Feature getFeature(Features features, String feature)
          Returns the specified feature element or null
static Feature[] getFeatures(Collection collection)
           
static Features getFeaturesElement(Collection collection)
           
static Features getFeaturesElement(Collection collection, boolean outofline)
           
static FeaturesHelper.Status getFeatureStatus(Collection collection, String feature)
           
static FeaturesHelper.Status getFeatureStatus(Features features, String feature)
           
static Features newFeatures(Abdera abdera)
           
static Collection[] select(Service service, Selector... selectors)
          Select a Collection from the service document
static Collection[] select(Service service, Selector selector)
          Select a Collection from the service document
static Collection[] select(Workspace workspace, Selector... selectors)
          Select a Collection from the Workspace
static Collection[] select(Workspace workspace, Selector selector)
          Select a Collection from the Workspace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FNS

public static final String FNS
See Also:
Constant Field Values

FEATURE

public static final QName FEATURE

FEATURES

public static final QName FEATURES

TYPE

public static final QName TYPE

FEATURE_SUPPORTS_DRAFTS

public static final String FEATURE_SUPPORTS_DRAFTS
See Also:
Constant Field Values

FEATURE_IGNORES_DRAFTS

public static final String FEATURE_IGNORES_DRAFTS
See Also:
Constant Field Values

FEATURE_SUPPORTS_XHTML_CONTENT

public static final String FEATURE_SUPPORTS_XHTML_CONTENT
See Also:
Constant Field Values

FEATURE_REQUIRES_XHTML_CONTENT

public static final String FEATURE_REQUIRES_XHTML_CONTENT
See Also:
Constant Field Values

FEATURE_SUPPORTS_HTML_CONTENT

public static final String FEATURE_SUPPORTS_HTML_CONTENT
See Also:
Constant Field Values

FEATURE_REQUIRES_HTML_CONTENT

public static final String FEATURE_REQUIRES_HTML_CONTENT
See Also:
Constant Field Values

FEATURE_SUPPORTS_TEXT_CONTENT

public static final String FEATURE_SUPPORTS_TEXT_CONTENT
See Also:
Constant Field Values

FEATURE_REQUIRES_TEXT_CONTENT

public static final String FEATURE_REQUIRES_TEXT_CONTENT
See Also:
Constant Field Values

FEATURE_SUPPORTS_XML_CONTENT

public static final String FEATURE_SUPPORTS_XML_CONTENT
See Also:
Constant Field Values

FEATURE_REQUIRES_XML_CONTENT

public static final String FEATURE_REQUIRES_XML_CONTENT
See Also:
Constant Field Values

FEATURE_SUPPORTS_BINARY_CONTENT

public static final String FEATURE_SUPPORTS_BINARY_CONTENT
See Also:
Constant Field Values

FEATURE_REQUIRES_BINARY_CONTENT

public static final String FEATURE_REQUIRES_BINARY_CONTENT
See Also:
Constant Field Values

FEATURE_SUPPORTS_REF_CONTENT

public static final String FEATURE_SUPPORTS_REF_CONTENT
See Also:
Constant Field Values

FEATURE_REQUIRES_REF_CONTENT

public static final String FEATURE_REQUIRES_REF_CONTENT
See Also:
Constant Field Values

FEATURE_SUPPORTS_XHTML_TEXT

public static final String FEATURE_SUPPORTS_XHTML_TEXT
See Also:
Constant Field Values

FEATURE_REQUIRES_XHTML_TEXT

public static final String FEATURE_REQUIRES_XHTML_TEXT
See Also:
Constant Field Values

FEATURE_SUPPORTS_HTML_TEXT

public static final String FEATURE_SUPPORTS_HTML_TEXT
See Also:
Constant Field Values

FEATURE_REQUIRES_HTML_TEXT

public static final String FEATURE_REQUIRES_HTML_TEXT
See Also:
Constant Field Values

FEATURE_SUPPORTS_TEXT_TEXT

public static final String FEATURE_SUPPORTS_TEXT_TEXT
See Also:
Constant Field Values

FEATURE_REQUIRES_TEXT_TEXT

public static final String FEATURE_REQUIRES_TEXT_TEXT
See Also:
Constant Field Values

FEATURE_PRESERVES_SUMMARY

public static final String FEATURE_PRESERVES_SUMMARY
See Also:
Constant Field Values

FEATURE_IGNORES_SUMMARY

public static final String FEATURE_IGNORES_SUMMARY
See Also:
Constant Field Values

FEATURE_PRESERVES_RIGHTS

public static final String FEATURE_PRESERVES_RIGHTS
See Also:
Constant Field Values

FEATURE_IGNORES_RIGHTS

public static final String FEATURE_IGNORES_RIGHTS
See Also:
Constant Field Values

FEATURE_PRESERVES_AUTHORS

public static final String FEATURE_PRESERVES_AUTHORS
See Also:
Constant Field Values

FEATURE_IGNORES_AUTHORS

public static final String FEATURE_IGNORES_AUTHORS
See Also:
Constant Field Values

FEATURE_PRESERVES_CONTRIBUTORS

public static final String FEATURE_PRESERVES_CONTRIBUTORS
See Also:
Constant Field Values

FEATURE_IGNORES_CONTRIBUTORS

public static final String FEATURE_IGNORES_CONTRIBUTORS
See Also:
Constant Field Values

FEATURE_USES_SLUG

public static final String FEATURE_USES_SLUG
See Also:
Constant Field Values

FEATURE_IGNORES_SLUG

public static final String FEATURE_IGNORES_SLUG
See Also:
Constant Field Values

FEATURE_PRESERVES_CATEGORIES

public static final String FEATURE_PRESERVES_CATEGORIES
See Also:
Constant Field Values

FEATURE_MULTIPLE_CATEGORIES

public static final String FEATURE_MULTIPLE_CATEGORIES
See Also:
Constant Field Values

FEATURE_IGNORES_CATEGORIES

public static final String FEATURE_IGNORES_CATEGORIES
See Also:
Constant Field Values

FEATURE_PRESERVES_LINKS

public static final String FEATURE_PRESERVES_LINKS
See Also:
Constant Field Values

FEATURE_IGNORES_LINKS

public static final String FEATURE_IGNORES_LINKS
See Also:
Constant Field Values

FEATURE_PRESERVES_INFOSET

public static final String FEATURE_PRESERVES_INFOSET
See Also:
Constant Field Values

FEATURE_PRESERVES_ID

public static final String FEATURE_PRESERVES_ID
See Also:
Constant Field Values

FEATURE_PRESERVES_DATES

public static final String FEATURE_PRESERVES_DATES
See Also:
Constant Field Values

FEATURE_PRESERVES_EXTENSIONS

public static final String FEATURE_PRESERVES_EXTENSIONS
See Also:
Constant Field Values

FEATURE_SCHEDULED_PUBLISHING

public static final String FEATURE_SCHEDULED_PUBLISHING
See Also:
Constant Field Values

FEATURE_REQUIRES_PERSON_EMAIL

public static final String FEATURE_REQUIRES_PERSON_EMAIL
See Also:
Constant Field Values

FEATURE_HIDES_PERSON_EMAIL

public static final String FEATURE_HIDES_PERSON_EMAIL
See Also:
Constant Field Values

FEATURE_REQUIRES_PERSON_URI

public static final String FEATURE_REQUIRES_PERSON_URI
See Also:
Constant Field Values

FEATURE_HIDES_PERSON_URI

public static final String FEATURE_HIDES_PERSON_URI
See Also:
Constant Field Values

FEATURE_PRESERVES_LANGUAGE

public static final String FEATURE_PRESERVES_LANGUAGE
See Also:
Constant Field Values

FEATURE_IGNORES_LANGUAGE

public static final String FEATURE_IGNORES_LANGUAGE
See Also:
Constant Field Values

FEATURE_SUPPORTS_CONDITIONALS

public static final String FEATURE_SUPPORTS_CONDITIONALS
See Also:
Constant Field Values

FEATURE_REQUIRES_CONDITIONALS

public static final String FEATURE_REQUIRES_CONDITIONALS
See Also:
Constant Field Values

FEATURE_PRESERVES_THREADING

public static final String FEATURE_PRESERVES_THREADING
See Also:
Constant Field Values

FEATURE_REQUIRES_THREADING

public static final String FEATURE_REQUIRES_THREADING
See Also:
Constant Field Values

FEATURE_IGNORES_THREADING

public static final String FEATURE_IGNORES_THREADING
See Also:
Constant Field Values

FEATURE_PRESERVE_SIGNATURE

public static final String FEATURE_PRESERVE_SIGNATURE
Indicates that the collection will preserve XML digital signatures contained in member resources

See Also:
Constant Field Values

FEATURE_SUPPORTS_SIGNATURE

public static final String FEATURE_SUPPORTS_SIGNATURE
Indicates that the collection will support XML digital signatures contained in member resources but may not preserve those signatures

See Also:
Constant Field Values

FEATURE_IGNORES_SIGNATURE

public static final String FEATURE_IGNORES_SIGNATURE
Indicates that the collection will ignore XML digital signatures contained in member resources

See Also:
Constant Field Values

FEATURE_REQUIRES_SIGNATURE

public static final String FEATURE_REQUIRES_SIGNATURE
Indicates that the collection requires member resources to contain valid XML digital signatures

See Also:
Constant Field Values

FEATURE_SIGNED_RESPONSE

public static final String FEATURE_SIGNED_RESPONSE
Indicates that the collection will add it's own digital signature to the collection feed and member resources

See Also:
Constant Field Values

FEATURE_SUPPORTS_BIDI

public static final String FEATURE_SUPPORTS_BIDI
Indicates that the collection supports the use of the Atom Bidi Attribute.

See Also:
Constant Field Values

FEATURE_REQUIRES_BIDI

public static final String FEATURE_REQUIRES_BIDI
Indicates that the collection requires the use of the Atom Bidi Attribute.

See Also:
Constant Field Values

FEATURE_IGNORES_BIDI

public static final String FEATURE_IGNORES_BIDI
Indicates that the collection ignores the use of the Atom Bidi Attribute.

See Also:
Constant Field Values

FEATURE_SUPPORTS_GEO

public static final String FEATURE_SUPPORTS_GEO
Indicates that the collection supports the use of Geo extensions (see the org.apache.abdera.ext.geo Package)

See Also:
Constant Field Values

FEATURE_REQUIRES_GEO

public static final String FEATURE_REQUIRES_GEO
Indicates that the collection requires the use of Geo extensions (see the org.apache.abdera.ext.geo Package)

See Also:
Constant Field Values

FEATURE_IGNORES_GEO

public static final String FEATURE_IGNORES_GEO
Indicates that the collection ignores the use of Geo extensions (see the org.apache.abdera.ext.geo Package)

See Also:
Constant Field Values

FEATURE_SUPPORTS_SHARING

public static final String FEATURE_SUPPORTS_SHARING
Indicates that the collection supports the use of the Simple Sharing Extensions (see the org.apache.abdera.ext.sharing Package)

See Also:
Constant Field Values

FEATURE_REQUIRES_SHARING

public static final String FEATURE_REQUIRES_SHARING
Indicates that the collection requires the use of the Simple Sharing Extensions (see the org.apache.abdera.ext.sharing Package)

See Also:
Constant Field Values

FEATURE_IGNORES_SHARING

public static final String FEATURE_IGNORES_SHARING
Indicates that the collection ignores the use of the Simple Sharing Extensions (see the org.apache.abdera.ext.sharing Package)

See Also:
Constant Field Values

FEATURE_REQUIRES_GOOGLELOGIN

public static final String FEATURE_REQUIRES_GOOGLELOGIN
Indicates that the collection requires the GoogleLogin auth scheme (see the org.apache.abdera.ext.gdata Package)

See Also:
Constant Field Values

FEATURE_SUPPORTS_GOOGLELOGIN

public static final String FEATURE_SUPPORTS_GOOGLELOGIN
Indicates that the collection supports the GoogleLogin auth scheme (see the org.apache.abdera.ext.gdata Package)

See Also:
Constant Field Values

FEATURE_REQUIRES_WSSE

public static final String FEATURE_REQUIRES_WSSE
Indicates that the collection requires the WSSE auth scheme (see the org.apache.abdera.ext.wsse Package)

See Also:
Constant Field Values

FEATURE_SUPPORTS_WSSE

public static final String FEATURE_SUPPORTS_WSSE
Indicates that the collection supports the WSSE auth scheme (see the org.apache.abdera.ext.wsse Package)

See Also:
Constant Field Values

FEATURE_FILTERS_MARKUP

public static final String FEATURE_FILTERS_MARKUP
Indicates that the collection will remove markup that is considered potentially unsafe from the entry examples of the type of markup that would be removed include scripts and embed

See Also:
Constant Field Values
Method Detail

flushCachedFeatures

public static void flushCachedFeatures()

newFeatures

public static Features newFeatures(Abdera abdera)

getFeaturesElement

public static Features getFeaturesElement(Collection collection)

getFeaturesElement

public static Features getFeaturesElement(Collection collection,
                                          boolean outofline)

getFeature

public static Feature getFeature(Collection collection,
                                 String feature)

getFeature

public static Feature getFeature(Features features,
                                 String feature)
Returns the specified feature element or null


getFeatureStatus

public static FeaturesHelper.Status getFeatureStatus(Collection collection,
                                                     String feature)

getFeatureStatus

public static FeaturesHelper.Status getFeatureStatus(Features features,
                                                     String feature)

getFeatures

public static Feature[] getFeatures(Collection collection)

addFeaturesElement

public static Features addFeaturesElement(Collection collection)

select

public static Collection[] select(Service service,
                                  Selector selector)
Select a Collection from the service document


select

public static Collection[] select(Service service,
                                  Selector... selectors)
Select a Collection from the service document


select

public static Collection[] select(Workspace workspace,
                                  Selector selector)
Select a Collection from the Workspace


select

public static Collection[] select(Workspace workspace,
                                  Selector... selectors)
Select a Collection from the Workspace



Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.