Package org.fenixedu.cms.domain
Class Menu
java.lang.Object
pt.ist.fenixframework.core.AbstractDomainObject
org.fenixedu.cms.domain.Menu_Base
org.fenixedu.cms.domain.Menu
- All Implemented Interfaces:
Serializable,Comparable<Menu>,Cloneable,Sluggable,Wrappable,pt.ist.fenixframework.DomainObject
Model of a Menu for a given
Page- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class pt.ist.fenixframework.core.AbstractDomainObject
pt.ist.fenixframework.core.AbstractDomainObject.SerializedForm -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a givenMenuItemas the last item.booleanclone(CloneCache cloneCache) intvoiddelete()getSite()booleanisValidSlug(String slug) A slug is valid if there are no other page on that site that have the same slug.makeWrap()menuItemForOid(String menuItemOid) voidPuts aMenuItemat a given position, shifting the existing ones to the right.voidRemoves a givenMenuItemfrom the Menu.voidsetName(org.fenixedu.commons.i18n.LocalizedString name) saves the name of the post and creates a new slug for the post.voidMethods inherited from class org.fenixedu.cms.domain.Menu_Base
addItems, addToplevelItems, getCreatedBy, getCreationDate, getItemsSet, getName, getOrder, getPrivileged, getRelationMenuMenuItem, getRelationMenuSite, getRelationMenuTopMenuItem, getRelationMenuUser, getSlug, getToplevelItemsSet, getTopMenu, removeItems, removeToplevelItems, setCreatedBy, setCreationDate, setOrder, setPrivileged, setSite, setTopMenuMethods 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:
-
-
Constructor Details
-
Menu
-
-
Method Details
-
getSite
-
delete
public void delete() -
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.
-
setName
public void setName(org.fenixedu.commons.i18n.LocalizedString name) saves the name of the post and creates a new slug for the post. -
putAt
Puts aMenuItemat a given position, shifting the existing ones to the right.- Parameters:
item- TheMenuItemto be added.position- the position to save the item.
-
remove
Removes a givenMenuItemfrom the Menu.- Parameters:
mi- theMenuItemto be removed.
-
add
Adds a givenMenuItemas the last item.- Parameters:
mi- theMenuItemto be added.
-
getToplevelItemsSorted
-
getItemsSorted
-
clone
-
compareTo
- Specified by:
compareToin interfaceComparable<Menu>
-
makeWrap
-
makeWrap
-
checkMenuOrder
public boolean checkMenuOrder()
-