I'd like to be able to get the categories and associated schemas directly, but, well -
https://github.com/apache/roller/blob/trunk/app/src/main/java/org/apache/roller/weblogger/webservices/atomprotocol/RollerAtomHandler.java#L217 public Categories getCategories(AtomRequest arg0) throws AtomException { throw new UnsupportedOperationException("Not supported yet."); } Better luck next version, I guess. Either way, it shouldn't matter much - I know what the schemes and categories are, so I can put them in an enum or something. I'm still working through what my problem is - my code looks like - //Add the product type as a category. List<Category> categories = new ArrayList<Category>(); Category productCategory = new Category(); productCategory.setScheme("http://localhost:8080/roller/" + systemType); productCategory.setTerm(productType); categories.add(productCategory); newEntry.setCategories(categories); // POST entry to collection on server collection.addEntry(newEntry); - where systemType is the name of the blog, and productType is the category (and, yes, I created an appropriate category on the blog first). This appears to have no effect; everything published goes into the default category. I think I'm failing somewhere in copyToRollerEntry - either it thinks my list of categories is null/empty, or that the scheme is null/empty, or it thinks that the scheme doesn't match the weblog category scheme, or thinks the term is null, or that it doesn't match a valid category. This *might* more properly be a rome-propomo question, but I don't think the problem is on that end. If it's any relevance, I'm running Roller 5.0.3 on Glassfish 3.1.2, with a Derby DB, and Java 7. On Wed, Mar 12, 2014 at 9:23 AM, Dave <[email protected]> wrote: > Yes, that is correct. Atom Categories that have that scheme are considered > to be "real" categories, i.e. those defined by the blog "foo". Atom > Categories with no scheme are considered to be tags. > > - Dave > > > > On Wed, Mar 12, 2014 at 8:49 AM, James Scott <[email protected]> wrote: > > > Okay, that should help considerably. My main stumbling block is what this > > bit of code does, exactly: > > > > RollerAtomService.getWeblogCategoryScheme(rollerEntry.getWebsite()) > > > > For example, if I have a blog named (& titled) 'foo' , and am testing > this > > locally, will it return something like "http://localhost:8080/roller/foo > " > > ? > > > > > > On Wed, Mar 12, 2014 at 7:55 AM, Dave <[email protected]> wrote: > > > > > You should be able to set categories publish time and other things via > > APP. > > > > > > Here's the code that processes incoming Atom entries: > > > > > > > > > https://github.com/apache/roller/blob/trunk/app/src/main/java/org/apache/roller/weblogger/webservices/atomprotocol/EntryCollection.java#L393 > > > > > > - Dave > > > > > > > > > > > > On Wed, Mar 12, 2014 at 7:05 AM, James Scott <[email protected]> wrote: > > > > > > > No - I'm not publishing a blog via the entry edit page, but rather > via > > > Atom > > > > Publishing Protocol. I'm using rome-propono to publish each entry. It > > is > > > a > > > > requirement of the project that no human hands be needed for each > > entry - > > > > the individual entries are going to be generated automatically by > > another > > > > project. > > > > > > > > I'd also really like to be able to customize the links, publish > dates, > > > etc, > > > > but it's not essential and as far as I can tell it can't be done. > > > > > > > > > > > > On Tue, Mar 11, 2014 at 11:12 PM, Glen Mazza <[email protected]> > > > wrote: > > > > > > > > > When you publish a blog entry, you get to choose its category on > the > > > > entry > > > > > edit page -- isn't that all you need? > > > > > > > > > > It seems to work for me: > > > > > https://web-gmazza.rhcloud.com/blog/feed/entries/atom?cat=Java for > > the > > > > > article at http://web-gmazza.rhcloud.com/blog/. > > > > > > > > > > HTH, > > > > > Glen > > > > > > > > > > > > > > > > > > > > > > > > > On 03/11/2014 03:22 PM, James Scott wrote: > > > > > > > > > >> Hi, I'm trying to use Roller as a sort of publishing service for > > other > > > > >> applications, with blog posts published via Atom Publishing > > Protocol. > > > It > > > > >> seems that Roller can't or doesn't handle category information > > > > correctly; > > > > >> I > > > > >> see a place to reset the default category for posts published via > > APP, > > > > but > > > > >> no way to set the category automatically based on the post. > > > > >> > > > > >> Is this something that can be done in Roller? > > > > >> > > > > >> > > > > > > > > > > > > > > >
