public interface ContentBean
ContentBean
don't need a IdentifiableContentBean.getIdentifier()
identifier. Beans that should be possible to be indexed in something like an inversed index, need to implement IdentifiableContentBean
.
Typically classes that implement this ContentBean
but not IdentifiableContentBean
are compounds of an IdentifiableContentBean
For example:
public class NewsBean implements IdentifiableContentBean {
public String getPath() {
// return path
}
public void setPath(String path) {
// set path
}
public Author getAuthor() {
// return author
}
}
public class Author implements ContentBean {
public String getName() {
// return name
}
}
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.