1 23 24 package org.apache.slide.webdav.util.resourcekind; 25 26 import java.util.Set ; 27 28 29 public class CollectionVersionImpl extends AbstractResourceKind implements CollectionVersion { 30 31 protected static ResourceKind singleton = null; 32 33 36 static public ResourceKind getInstance() { 37 if( singleton == null ) 38 singleton = new CollectionVersionImpl(); 39 return singleton; 40 } 41 42 45 protected CollectionVersionImpl() { 46 } 47 48 57 public Set getSupportedLiveProperties( String [] excludedFeatures ) { 58 Set s = super.getSupportedLiveProperties( excludedFeatures ); 59 if( isSupportedFeature(F_VERSION_CONTROLLED_COLLECTION, excludedFeatures) ) { 60 s.add( P_VERSION_CONTROLLED_BINDING_SET ); 61 } 62 return s; 63 } 64 65 68 public Set getSupportedMethods() { 69 Set s = super.getSupportedMethods(); 70 return s; 71 } 72 73 76 public Set getSupportedReports() { 77 Set s = super.getSupportedReports(); 78 return s; 79 } 80 81 84 public String toString() { 85 return "collection version"; 86 } 87 } 88 89 | Popular Tags |