1 23 24 package org.apache.slide.webdav.util.resourcekind; 25 26 import java.util.Set ; 27 28 29 public class ActivityImpl extends AbstractResourceKind implements Activity { 30 31 protected static ResourceKind singleton = null; 32 33 36 static public ResourceKind getInstance() { 37 if( singleton == null ) 38 singleton = new ActivityImpl(); 39 return singleton; 40 } 41 42 45 protected ActivityImpl() { 46 } 47 48 57 public Set getSupportedLiveProperties( String [] excludedFeatures ) { 58 Set s = super.getSupportedLiveProperties( excludedFeatures ); 59 if( isSupportedFeature(F_ACTIVITY, excludedFeatures) ) { 61 s.add( P_ACTIVITY_VERSION_SET ); 62 s.add( P_ACTIVITY_CHECKOUT_SET ); 63 s.add( P_SUBACTIVITY_SET ); 64 s.add( P_CURRENT_WORKSPACE_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 "activity"; 90 } 91 } 92 93 | Popular Tags |