|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.relations.CmsCategory
public class CmsCategory
Represents a category, that is just a folder.
The category can be centralized under /system/categories/
,
or decentralized in every folder.
For instance, you can have a category folder under /sites/default/
so, any file under /sites/default/
could be assigned to any
category defined under /system/categories/
or
/sites/default/categories
.
But a file under /sites/othersite/
will only be assignable to
categories defined in /system/categories/
.
Constructor Summary | |
---|---|
CmsCategory(CmsUUID structureId,
java.lang.String rootPath,
java.lang.String title,
java.lang.String description,
java.lang.String baseFolder)
Default constructor. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object that)
|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getBasePath()
Returns the category's base path. |
static java.lang.String |
getCategoryPath(java.lang.String rootPath,
java.lang.String baseFolder)
Returns the category path for the given root path. |
java.lang.String |
getDescription()
Returns the description. |
CmsUUID |
getId()
Returns the id. |
java.lang.String |
getName()
Returns the mere category name without it's complete path and without the trailing folder - slash. |
java.lang.String |
getPath()
Returns the path. |
java.lang.String |
getRootPath()
Returns the category's root path. |
java.lang.String |
getTitle()
Returns the title. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CmsCategory(CmsUUID structureId, java.lang.String rootPath, java.lang.String title, java.lang.String description, java.lang.String baseFolder) throws CmsException
structureId
- the structure id of the resource that this category representsrootPath
- the root path of the category foldertitle
- the title of the categorydescription
- the description of the categorybaseFolder
- the base categories folder
CmsException
- if the root path does not match the given base folderMethod Detail |
---|
public static java.lang.String getCategoryPath(java.lang.String rootPath, java.lang.String baseFolder) throws CmsException
rootPath
- the root pathbaseFolder
- the categories base folder name
CmsException
- if the root path does not match the given base folderpublic int compareTo(java.lang.Object that)
compareTo
in interface java.lang.Comparable
Comparable.compareTo(java.lang.Object)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public java.lang.String getBasePath()
public java.lang.String getDescription()
public CmsUUID getId()
public java.lang.String getName()
public java.lang.String getPath()
public java.lang.String getRootPath()
public java.lang.String getTitle()
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |