1 23 24 package org.apache.slide.webdav.util.resourcekind; 25 26 import java.util.Set ; 27 28 29 public class CheckedOutVersionControlledImpl extends AbstractResourceKind implements CheckedOutVersionControlled { 30 31 protected static ResourceKind singleton = null; 32 33 36 static public ResourceKind getInstance() { 37 if( singleton == null ) 38 singleton = new CheckedOutVersionControlledImpl(); 39 return singleton; 40 } 41 42 45 protected CheckedOutVersionControlledImpl() { 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_CHECKOUT_IN_PLACE) ) { 68 s.add( M_UNCHECKOUT ); 69 } 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 "checked-out version controlled resource"; 86 } 87 } 88 89 | Popular Tags |