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
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class pt.ist.fenixframework.core.AbstractDomainObject
pt.ist.fenixframework.core.AbstractDomainObject.SerializedForm -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<? super Category>static final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone(CloneCache cloneCache) voiddelete()getSite()booleanisValidSlug(String slug) A slug is valid if there are no other category on that site that have the same slug.makeWrap()voidsetName(org.fenixedu.commons.i18n.LocalizedString name) voidMethods 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, setSiteMethods inherited from class pt.ist.fenixframework.core.AbstractDomainObject
checkForDeletionBlockers, deleteDomainObject, ensureOid, equals, getDeletionBlockers, getDomainModel, getExternalId, getOid, hashCode, init$Instance, makeSerializedForm, toString, writeReplace
-
Field Details
-
SIGNAL_CREATED
- See Also:
-
SIGNAL_DELETED
- See Also:
-
SIGNAL_EDITED
- See Also:
-
CATEGORY_NAME_COMPARATOR
-
-
Constructor Details
-
Category
The loggedUsercreates a new instance of aCategory- Parameters:
site- sitename- name
-
-
Method Details
-
getSite
- Overrides:
getSitein classCategory_Base
-
setName
public void setName(org.fenixedu.commons.i18n.LocalizedString name) - Overrides:
setNamein classCategory_Base
-
setSlug
- Specified by:
setSlugin interfaceSluggable- Overrides:
setSlugin classCategory_Base
-
isValidSlug
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
-
getRssUrl
-
delete
public void delete() -
clone
-
makeWrap
-
getEditUrl
-
getLatestPosts
-