public static Principal getHrefPrincipal(String href) { if (href == null) { throw new IllegalArgumentException("Href-Principal must contain a valid href."); } return new Principal(href); }
public static Principal getHrefPrincipal(String href) { if (href == null) { throw new IllegalArgumentException("Href-Principal must contain a valid href."); } return new Principal(href); }
public static Principal getHrefPrincipal(String href) { if (href == null) { throw new IllegalArgumentException("Href-Principal must contain a valid href."); } return new Principal(href); }
public static Principal getPropertyPrincipal(DavPropertyName propertyName) { if (propertyName == null) { throw new IllegalArgumentException("Property-Principal must contain a valid property name."); } // there is a limited amount of properties, that can be used // for a Property-Principal if (PROP_PRINCIPALS.containsKey(propertyName)) { return PROP_PRINCIPALS.get(propertyName); } else { Principal p = new Principal(propertyName); PROP_PRINCIPALS.put(propertyName, p); return p; } }
public static Principal getPropertyPrincipal(DavPropertyName propertyName) { if (propertyName == null) { throw new IllegalArgumentException("Property-Principal must contain a valid property name."); } // there is a limited amount of properties, that can be used // for a Property-Principal if (PROP_PRINCIPALS.containsKey(propertyName)) { return PROP_PRINCIPALS.get(propertyName); } else { Principal p = new Principal(propertyName); PROP_PRINCIPALS.put(propertyName, p); return p; } }
public static Principal getPropertyPrincipal(DavPropertyName propertyName) { if (propertyName == null) { throw new IllegalArgumentException("Property-Principal must contain a valid property name."); } // there is a limited amount of properties, that can be used // for a Property-Principal if (PROP_PRINCIPALS.containsKey(propertyName)) { return (Principal) PROP_PRINCIPALS.get(propertyName); } else { Principal p = new Principal(propertyName); PROP_PRINCIPALS.put(propertyName, p); return p; } }