Package org.apache.roller.weblogger.webservices.adminprotocol.sdk

Examples of org.apache.roller.weblogger.webservices.adminprotocol.sdk.MemberEntrySet


        assertEquals(wes1, wes2);
    }
   
    public void testDocumentMarshal() {
        try {
            MemberEntrySet wes1 = getSampleMemberEntrySet();
            Document d = wes1.toDocument();
           
            MemberEntrySet wes2 = new MemberEntrySet(d, getEndpointUrl());
           
            assertEquals(wes1, wes2);
        } catch (UnexpectedRootElementException uree) {
            fail(uree.getMessage());
        }
View Full Code Here


        }
    }
   
    public void testStreamMarshal() {
        try {
            MemberEntrySet wes1 = getSampleMemberEntrySet();
            String s = wes1.toString();
            InputStream stream = new ByteArrayInputStream(s.getBytes("UTF-8"));
           
            MemberEntrySet wes2 = new MemberEntrySet(stream, getEndpointUrl());
           
            assertEquals(wes1, wes2);
        } catch (UnexpectedRootElementException uree) {
            fail(uree.getMessage());
        } catch (IOException ioe) {
View Full Code Here

        super(request);
        memberUri = new MemberURI(request);
    }
   
    protected EntrySet getEntrySet(Document d) throws UnexpectedRootElementException {
        return new MemberEntrySet(d, getUrlPrefix());
    }
View Full Code Here

        List entries = new ArrayList();
        for (WeblogPermission perm : pds) {
            Entry entry = toMemberEntry(perm);
            entries.add(entry);
        }
        MemberEntrySet mes = new MemberEntrySet(getUrlPrefix());
        mes.setEntries((Entry[])entries.toArray(new Entry[0]));
       
        return mes;
    }
View Full Code Here

TOP

Related Classes of org.apache.roller.weblogger.webservices.adminprotocol.sdk.MemberEntrySet

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.