1 23 24 package org.apache.slide.webdav.util.resourcekind; 25 26 import java.util.Set ; 27 28 29 public class VersionHistoryImpl extends AbstractResourceKind implements VersionHistory { 30 31 protected static ResourceKind singleton = null; 32 33 36 static public ResourceKind getInstance() { 37 if( singleton == null ) 38 singleton = new VersionHistoryImpl(); 39 return singleton; 40 } 41 42 45 protected VersionHistoryImpl() { 46 } 47 48 57 public Set getSupportedLiveProperties( String [] excludedFeatures ) { 58 Set s = super.getSupportedLiveProperties( excludedFeatures ); 59 if( isSupportedFeature(F_VERSION_HISTORY, excludedFeatures) ) { 60 s.add( P_VERSION_SET ); 61 s.add( P_ROOT_VERSION ); 62 } 63 return s; 64 } 65 66 69 public Set getSupportedMethods() { 70 Set s = super.getSupportedMethods(); 71 return s; 72 } 73 74 77 public Set getSupportedReports() { 78 Set s = super.getSupportedReports(); 79 if( isSupportedFeature(F_VERSION_CONTROL) ) 80 s.add( R_VERSION_TREE ); 81 return s; 82 } 83 84 87 public String toString() { 88 return "version history"; 89 } 90 } 91 92 | Popular Tags |