1 23 24 package org.apache.slide.webdav.util.resourcekind; 25 26 import java.util.Set ; 27 28 29 public class WorkspaceImpl extends AbstractResourceKind implements Workspace { 30 31 protected static ResourceKind singleton = null; 32 33 36 static public ResourceKind getInstance() { 37 if( singleton == null ) 38 singleton = new WorkspaceImpl(); 39 return singleton; 40 } 41 42 45 protected WorkspaceImpl() { 46 } 47 48 57 public Set getSupportedLiveProperties( String [] excludedFeatures ) { 58 Set s = super.getSupportedLiveProperties( excludedFeatures ); 59 if( isSupportedFeature(F_WORKSPACE, excludedFeatures) ) { 60 s.add( P_WORKSPACE_CHECKOUT_SET ); 61 if( isSupportedFeature(F_BASELINE, excludedFeatures) ) 62 s.add( P_BASELINE_CONTROLLED_COLLECTION_SET ); 63 if( isSupportedFeature(F_ACTIVITY, excludedFeatures) ) 64 s.add( P_CURRENT_ACTIVITY_SET ); 65 } 66 return s; 67 } 68 69 72 public Set getSupportedMethods() { 73 Set s = super.getSupportedMethods(); 74 return s; 75 } 76 77 80 public Set getSupportedReports() { 81 Set s = super.getSupportedReports(); 82 return s; 83 } 84 85 88 public String toString() { 89 return "workspace"; 90 } 91 } 92 93 | Popular Tags |