Examples of EntrySet


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

            mgr.removeWebsite(wd);
            getRoller().flush();

            // return empty set, object deleted
            Weblog[] wds = new Weblog[0];
            EntrySet es = toWeblogEntrySet(wds);
            return es;

        } catch (WebloggerException re) {
            throw new InternalException("ERROR: Could not delete entry: " + handle, re);
        }
View Full Code Here

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

                for (Iterator j = permissions.iterator(); j.hasNext(); ) {
                    WeblogPermission pd = (WeblogPermission)j.next();
                    perms.add(pd);
                }
            }
            EntrySet es = toMemberEntrySet((WeblogPermission[])perms.toArray(new WeblogPermission[0]));
            return es;
        } catch (WebloggerException re) {
            throw new InternalException("ERROR: Could not get member collection", re);
        }
    }
View Full Code Here

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

                    throw new NotFoundException("ERROR: Could not get permissions for user name: " + username + ", handle: " + handle);
                }
                perms = Collections.singletonList(pd);
            }
           
            EntrySet es = toMemberEntrySet((WeblogPermission[])perms.toArray(new WeblogPermission[0]));
            return es;
        } catch (WebloggerException re) {
            throw new InternalException("ERROR: Could not get entry for handle: " + handle + ", username: " + username, re);
        }
    }
View Full Code Here

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

            throw new InternalException("ERROR: Could not get entry for handle: " + handle + ", username: " + username, re);
        }
    }
   
    private EntrySet postCollection(Reader r) throws HandlerException {
        EntrySet c = getEntrySet(r);
        if (c.isEmpty()) {
            throw new BadRequestException("ERROR: No entries");
        }
        c = createMembers((MemberEntrySet)c);
       
        return c;
View Full Code Here

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

       
        return c;
    }
   
    private EntrySet putCollection(Reader r) throws HandlerException {
        EntrySet c = getEntrySet(r);
        if (c.isEmpty()) {
            throw new BadRequestException("ERROR: No entries");
        }
        c = updateMembers((MemberEntrySet)c);
       
        return c;
View Full Code Here

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

       
        return c;
    }
   
    private EntrySet putEntry(Reader r) throws HandlerException {
        EntrySet c = getEntrySet(r);
        if (c.isEmpty()) {
            throw new BadRequestException("ERROR: No entries");
        }
        if (c.getEntries().length > 1) {
            throw new BadRequestException("ERROR: Cannot put >1 entries per request");
        }
       
        // only one entry
        // if there's zero entries, this is a nop
        MemberEntry entry = (MemberEntry)c.getEntries()[0];
       
        MemberURI muri = (MemberURI)getUri();
       
        // get handle
        // if there's no handle in the entry, set it
View Full Code Here

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

            Weblog wd = getWebsiteData(handle);
            CacheManager.invalidate(wd);
           
            // return empty set, entry was deleted
            WeblogPermission[] pds = new WeblogPermission[0];
            EntrySet es = toMemberEntrySet(pds);
            return es;
           
        } catch (WebloggerException re) {
            throw new InternalException("ERROR: Could not delete entry", re);
        }
View Full Code Here

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

        try {
            List users = getRoller().getUserManager().getUsers(null, null, null, null, 0, -1);
            if (users == null) {
                users = java.util.Collections.EMPTY_LIST;
            }
            EntrySet es = toUserEntrySet((User[])users.toArray(new User[0]));
           
            return es;
        } catch (WebloggerException re) {
            throw new InternalException("ERROR: Could not get user collection", re);
        }
View Full Code Here

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

   
    private EntrySet getEntry() throws HandlerException {
        User ud = getUserData(getUri().getEntryId());
        User[] uds = new User[] { ud };
       
        EntrySet c = toUserEntrySet(uds);
        return c;
    }
View Full Code Here

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

        EntrySet c = toUserEntrySet(uds);
        return c;
    }
   
    private EntrySet postCollection(Reader r) throws HandlerException {
        EntrySet c = getEntrySet(r);
        if (c.isEmpty()) {
            throw new BadRequestException("ERROR: No entries");
        }
        c = createUsers((UserEntrySet)c);
       
        return c;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.