Package org.fenixedu.cms.domain
Class Category
- java.lang.Object
-
- pt.ist.fenixframework.core.AbstractDomainObject
-
- org.fenixedu.cms.domain.Category_Base
-
- org.fenixedu.cms.domain.Category
-
- All Implemented Interfaces:
Serializable,Cloneable,Sluggable,Wrappable,pt.ist.fenixframework.DomainObject
public class Category extends Category_Base implements Wrappable, Sluggable, Cloneable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classCategory.CategoryWrap
-
Field Summary
Fields Modifier and Type Field Description static Comparator<? super Category>CATEGORY_NAME_COMPARATORstatic StringSIGNAL_CREATEDstatic StringSIGNAL_DELETEDstatic StringSIGNAL_EDITED
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Categoryclone(CloneCache cloneCache)voiddelete()StringgetAddress()StringgetEditUrl()List<Post>getLatestPosts()StringgetRssUrl()SitegetSite()booleanisValidSlug(String slug)A slug is valid if there are no other category on that site that have the same slug.WrapmakeWrap()voidsetName(org.fenixedu.commons.i18n.LocalizedString name)voidsetSlug(String slug)-
Methods inherited from class org.fenixedu.cms.domain.Category_Base
addBuilders, addComponents, addPosts, getBuildersSet, getComponentsSet, getCreatedBy, getCreationDate, getName, getPostsSet, getPrivileged, getRelationCategoryPost, getRelationCategorySite, getRelationCategoryUser, getRelationListCategoryPostsCategory, getRelationSiteBuilderCategory, getSlug, removeBuilders, removeComponents, removePosts, setCreatedBy, setCreationDate, setPrivileged, setSite
-
Methods inherited from class pt.ist.fenixframework.core.AbstractDomainObject
checkForDeletionBlockers, deleteDomainObject, ensureOid, equals, getDeletionBlockers, getDomainModel, getExternalId, getOid, hashCode, init$Instance, makeSerializedForm, toString, writeReplace
-
-
-
-
Field Detail
-
SIGNAL_CREATED
public static final String SIGNAL_CREATED
- See Also:
- Constant Field Values
-
SIGNAL_DELETED
public static final String SIGNAL_DELETED
- See Also:
- Constant Field Values
-
SIGNAL_EDITED
public static final String SIGNAL_EDITED
- See Also:
- Constant Field Values
-
CATEGORY_NAME_COMPARATOR
public static final Comparator<? super Category> CATEGORY_NAME_COMPARATOR
-
-
Method Detail
-
getSite
public Site getSite()
- Overrides:
getSitein classCategory_Base
-
setName
public void setName(org.fenixedu.commons.i18n.LocalizedString name)
- Overrides:
setNamein classCategory_Base
-
setSlug
public void setSlug(String slug)
- Specified by:
setSlugin interfaceSluggable- Overrides:
setSlugin classCategory_Base
-
isValidSlug
public boolean isValidSlug(String slug)
A slug is valid if there are no other category on that site that have the same slug.- Specified by:
isValidSlugin interfaceSluggable- Parameters:
slug- slug- Returns:
- true if it is a valid slug.
-
getAddress
public String getAddress()
-
getRssUrl
public String getRssUrl()
-
delete
public void delete()
-
clone
public Category clone(CloneCache cloneCache)
-
getEditUrl
public String getEditUrl()
-
-