Package org.apache.webdav.lib.properties

Examples of org.apache.webdav.lib.properties.PrincipalCollectionSetProperty


    public PrincipalCollectionSetProperty principalCollectionSetFindMethod(
        String path) throws HttpException, IOException {

        setClient();

        PrincipalCollectionSetProperty set = null;

        Vector properties = new Vector();
        properties.addElement(PrincipalCollectionSetProperty.TAG_NAME);

        // Default depth=0, type=by_name
View Full Code Here


            } else if (SupportedLockProperty.TAG_NAME.equals(localName)) {
                property = new SupportedLockProperty(response, element);
            } else if (AclProperty.TAG_NAME.equals(localName)) {
                property = new AclProperty(response, element);
            } else if (PrincipalCollectionSetProperty.TAG_NAME.equals(localName)) {
                property = new PrincipalCollectionSetProperty(response, element);
            } else if (OwnerProperty.TAG_NAME.equals(localName)) {
                property = new OwnerProperty(response, element);
            }
        }
View Full Code Here

    void principalcollectionset(String path)
    {
        try
        {
            PrincipalCollectionSetProperty set=null;
            if (path!=null) {
                path=checkUri(path);
            }
            else {
                path=webdavResource.getPath();
            }
            set = webdavResource.principalCollectionSetFindMethod(path);

            if (set==null)
            {
                out.println("Error: PropFind didn't return an PrincipalCollectionSetProperty!");
                return;
            }
            String[] hrefs=set.getHrefs();
            if (hrefs==null) {
                out.println("No PrincipalCollectionSet for " + path);
            }
            out.println();
            out.println("PrincipalCollectionSet for " + path + ":");
View Full Code Here

        }

        // FIXME: when search support is complete enhance this
        //        to really search for the principal
        if (!principal.startsWith("/") && !principal.startsWith("http")) {
            PrincipalCollectionSetProperty set = webdavResource.principalCollectionSetFindMethod(path);
            if ((set!=null) && (set.getHrefs()!=null) && (set.getHrefs().length==1))
                principal = set.getHrefs()[0] + "/" + principal;
        }
        return normalize(principal);
    }
View Full Code Here

    void principalcollectionset(String path)
    {
        try
        {
            PrincipalCollectionSetProperty set=null;
            if (path!=null) {
                path=checkUri(path);
            }
            else {
                path=webdavResource.getPath();
            }
            set = webdavResource.principalCollectionSetFindMethod(path);

            if (set==null)
            {
                out.println("Error: PropFind didn't return an PrincipalCollectionSetProperty!");
                return;
            }
            String[] hrefs=set.getHrefs();
            if (hrefs==null) {
                out.println("No PrincipalCollectionSet for " + path);
            }
            out.println();
            out.println("PrincipalCollectionSet for " + path + ":");
View Full Code Here

        }

        // FIXME: when search support is complete enhance this
        //        to really search for the principal
        if (!principal.startsWith("/") && !principal.startsWith("http")) {
            PrincipalCollectionSetProperty set = webdavResource.principalCollectionSetFindMethod(path);
            if ((set!=null) && (set.getHrefs()!=null) && (set.getHrefs().length==1))
                principal = set.getHrefs()[0] + "/" + principal;
        }
        return normalize(principal);
    }
View Full Code Here

    public PrincipalCollectionSetProperty principalCollectionSetFindMethod(
        String path) throws HttpException, IOException {

        setClient();

        PrincipalCollectionSetProperty set = null;

        Vector properties = new Vector();
        properties.addElement(PrincipalCollectionSetProperty.TAG_NAME);

        // Default depth=0, type=by_name
View Full Code Here

    public PrincipalCollectionSetProperty principalCollectionSetFindMethod(
        String path) throws HttpException, IOException {

        setClient();

        PrincipalCollectionSetProperty set = null;

        Vector properties = new Vector();
        properties.addElement(PrincipalCollectionSetProperty.TAG_NAME);

        // Default depth=0, type=by_name
View Full Code Here

    public PrincipalCollectionSetProperty principalCollectionSetFindMethod(String path)
        throws HttpException, IOException {

        setClient();
       
        PrincipalCollectionSetProperty set = null;

        Vector properties = new Vector();
        properties.addElement(PrincipalCollectionSetProperty.TAG_NAME);
       
        // Default depth=0, type=by_name
View Full Code Here

    }
 
    // FIXME: when search support is complete enhance this
    //        to really search for the principal
    if (!principal.startsWith("/") && !principal.startsWith("http")) {
      PrincipalCollectionSetProperty set = webdavResource.principalCollectionSetFindMethod(path);
      if ((set!=null) && (set.getHrefs().length==1))
        principal = set.getHrefs()[0] + "/" + principal;
    }
    return normalize(principal);
  }
View Full Code Here

TOP

Related Classes of org.apache.webdav.lib.properties.PrincipalCollectionSetProperty

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.