1 23 24 package org.apache.slide.webdav.util.resourcekind; 25 26 import java.util.Set ; 27 28 29 public class CheckedInVersionControlledImpl extends AbstractResourceKind implements CheckedInVersionControlled { 30 31 protected static ResourceKind singleton = null; 32 33 36 static public ResourceKind getInstance() { 37 if( singleton == null ) 38 singleton = new CheckedInVersionControlledImpl(); 39 return singleton; 40 } 41 42 45 protected CheckedInVersionControlledImpl() { 46 } 47 48 57 public Set getSupportedLiveProperties( String [] excludedFeatures ) { 58 Set s = super.getSupportedLiveProperties( excludedFeatures ); 59 if( isSupportedFeature(F_VERSION_CONTROL, excludedFeatures) ) 60 s.add( P_CHECKED_IN ); 61 return s; 62 } 63 64 67 public Set getSupportedMethods() { 68 Set s = super.getSupportedMethods(); 69 if( isSupportedFeature(F_CHECKOUT_IN_PLACE) ) 70 s.add( M_CHECKOUT ); 71 if( isSupportedFeature(F_UPDATE) ) 72 s.add( M_UPDATE ); 73 return s; 74 } 75 76 79 public Set getSupportedReports() { 80 Set s = super.getSupportedReports(); 81 return s; 82 } 83 84 87 public String toString() { 88 return "checked-in version controlled resource"; 89 } 90 } 91 92 | Popular Tags |