1 23 24 package org.apache.slide.webdav.util.resourcekind; 25 26 import java.util.Set ; 27 28 29 public class WorkingImpl extends AbstractResourceKind implements Working { 30 31 protected static ResourceKind singleton = null; 32 33 36 static public ResourceKind getInstance() { 37 if( singleton == null ) 38 singleton = new WorkingImpl(); 39 return singleton; 40 } 41 42 45 protected WorkingImpl() { 46 } 47 48 57 public Set getSupportedLiveProperties( String [] excludedFeatures ) { 58 Set s = super.getSupportedLiveProperties( excludedFeatures ); 59 if( isSupportedFeature(F_WORKING_RESOURCE, excludedFeatures) ) { 60 s.add( P_AUTO_UPDATE ); 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 "working resource"; 86 } 87 } 88 89 | Popular Tags |