1 23 24 package org.apache.slide.webdav.util.resourcekind; 25 26 import java.util.Set ; 27 28 29 public class PrincipalImpl extends DeltavCompliantImpl implements Principal { 30 31 protected static ResourceKind singleton = null; 32 33 36 static public ResourceKind getInstance() { 37 if( singleton == null ) 38 singleton = new PrincipalImpl(); 39 return singleton; 40 } 41 42 45 protected PrincipalImpl() { 46 } 47 48 57 public Set getSupportedLiveProperties( String [] excludedFeatures ) { 58 Set s = super.getSupportedLiveProperties( excludedFeatures ); 59 if( isSupportedFeature(F_ACCESS_CONTROL, excludedFeatures) ) { 60 s.add( P_ALTERNATE_URI_SET ); 61 s.add( P_PRINCIPAL_URL ); 62 s.add( P_GROUP_MEMBER_SET ); 63 s.add( P_GROUP_MEMBERSHIP ); 64 } 65 return s; 66 } 67 68 71 public String toString() { 72 return "principal"; 73 } 74 } 75 76 | Popular Tags |