1 23 24 package org.apache.slide.webdav.util.resourcekind; 25 26 import java.util.Set ; 27 28 29 public class VersionableImpl extends AbstractResourceKind implements Versionable { 30 31 protected static ResourceKind singleton = null; 32 33 36 static public ResourceKind getInstance() { 37 if( singleton == null ) 38 singleton = new VersionableImpl(); 39 return singleton; 40 } 41 42 45 protected VersionableImpl() { 46 } 47 48 57 public Set getSupportedLiveProperties( String [] excludedFeatures ) { 58 Set s = super.getSupportedLiveProperties( excludedFeatures ); 59 return s; 60 } 61 62 65 public Set getSupportedMethods() { 66 Set s = super.getSupportedMethods(); 67 if( isSupportedFeature(F_VERSION_CONTROL) ) 68 s.add( M_VERSION_CONTROL ); 69 return s; 70 } 71 72 75 public Set getSupportedReports() { 76 Set s = super.getSupportedReports(); 77 return s; 78 } 79 } 80 81 | Popular Tags |