public class Catalog extends SimpleAmetysObject<CatalogFactory>
Modifier and Type | Field and Description |
---|---|
static String |
IS_DEFAULT
code property.
|
static String |
TITLE
code property.
|
Constructor and Description |
---|
Catalog(Node node,
String parentPath,
CatalogFactory catalogFactory)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getTitle()
Get the title of catalog
|
boolean |
isDefault()
Determines if this catalog is the default catalog
|
void |
setDefault(boolean isDefault)
Set the default state of this catalog
|
void |
setTitle(String title)
Set the title of catalog
|
_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getNode, getParent, getParentPath, getPath, needsSave, remove, rename, revertChanges, saveChanges
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
equals, hashCode
public static final String TITLE
public static final String IS_DEFAULT
public Catalog(Node node, String parentPath, CatalogFactory catalogFactory)
node
- The JCR nodeparentPath
- The parent pathcatalogFactory
- the object factorypublic void setTitle(String title)
title
- the title to setpublic void setDefault(boolean isDefault)
isDefault
- true to set this catalog as the default catalogpublic boolean isDefault()