Package org.fenixedu.cms.domain
Class Page
java.lang.Object
pt.ist.fenixframework.core.AbstractDomainObject
org.fenixedu.cms.domain.Page_Base
org.fenixedu.cms.domain.Page
- All Implemented Interfaces:
Serializable,Cloneable,Sluggable,pt.ist.fenixframework.DomainObject
Model for a page on a given Site.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class pt.ist.fenixframework.core.AbstractDomainObject
pt.ist.fenixframework.core.AbstractDomainObject.SerializedForm -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<Page>static Comparator<Page>static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComponents(Component components) voidarchive()clone(CloneCache cloneCache) componentForOid(String oid) Searches aComponentof this page by oid.static Pagecreate(Site site, Menu menu, MenuItem parent, org.fenixedu.commons.i18n.LocalizedString name, boolean published, String template, org.fenixedu.bennu.core.domain.User creator, Component... components) voiddelete()org.fenixedu.bennu.core.groups.Groupreturns the group of people who can view this site.getSite()booleanbooleanbooleanbooleanisValidSlug(String slug) A slug is valid if there are no other page on that site that have the same slug.voidrecover()voidremoveComponents(Component components) voidsetCanViewGroup(org.fenixedu.bennu.core.groups.Group group) sets the access group for this sitevoidsetName(org.fenixedu.commons.i18n.LocalizedString name) voidsetPublished(boolean published) voidvoidsetTemplate(CMSTemplate template) Methods inherited from class org.fenixedu.cms.domain.Page_Base
addMenuItems, getArchivedSite, getComponentsSet, getCreatedBy, getCreationDate, getEmbedded, getMenuItemsSet, getModificationDate, getName, getPublished, getRelationCMSTemplatePage, getRelationComponentPage, getRelationPageMenuItem, getRelationPageUser, getRelationPageViewGroup, getRelationSiteArchivedPage, getRelationSitePage, getSlug, getTemplateType, getViewGroup, removeMenuItems, setArchivedSite, setCreatedBy, setCreationDate, setEmbedded, setModificationDate, setSite, setTemplateType, setViewGroupMethods 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:
-
SIGNAL_ARCHIVED
- See Also:
-
SIGNAL_RECOVERED
- See Also:
-
CREATION_DATE_COMPARATOR
-
PAGE_NAME_COMPARATOR
-
-
Constructor Details
-
Page
the loggedUsercreates a new Page.- Parameters:
site- sitename- name
-
-
Method Details
-
getSite
-
setName
public void setName(org.fenixedu.commons.i18n.LocalizedString name) -
setSlug
-
isValidSlug
A slug is valid if there are no other page on that site that have the same slug.- Specified by:
isValidSlugin interfaceSluggable- Parameters:
slug- slug- Returns:
- true if it is a valid slug.
-
componentForOid
Searches aComponentof this page by oid. -
removeComponents
- Overrides:
removeComponentsin classPage_Base
-
addComponents
- Overrides:
addComponentsin classPage_Base
-
delete
public void delete() -
archive
public void archive() -
recover
public void recover() -
getAddress
- Returns:
- the URL link for this page.
-
getCanViewGroup
public org.fenixedu.bennu.core.groups.Group getCanViewGroup()returns the group of people who can view this site.- Returns:
- group the access group for this site
-
setCanViewGroup
public void setCanViewGroup(org.fenixedu.bennu.core.groups.Group group) sets the access group for this site- Parameters:
group- the group of people who can view this site
-
create
-
setPublished
public void setPublished(boolean published) - Overrides:
setPublishedin classPage_Base
-
setTemplate
- Overrides:
setTemplatein classPage_Base
-
isPublished
public boolean isPublished() -
getRssUrl
-
getEditUrl
-
getTemplateFromSuper
-
getTemplate
- Overrides:
getTemplatein classPage_Base
-
isStaticPage
public boolean isStaticPage() -
getStaticPost
-
clone
-
isEmbedded
public boolean isEmbedded()
-