Interface PageLangSpec
- All Superinterfaces:
Comparable<StoreElement>,StoreElement,Workflowable
This interface provides methods to handle the PageSpecification
(language dependent properties of a site at SiteStore)
- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescription@NotNull de.espirit.firstspirit.store.access.sitestore.AltPageRefImplcreateScheduledPageRef(@NotNull Page page, @NotNull Date validFrom) Creates and adds a scheduled page-ref.Gets the keywords of this pagereference.Get the language of the pagereference@NotNull StringgetName()Get the name of the pagereference@Nullable RemoteProjectConfigurationReturn RemoteProjectConfiguration used for related project.@NotNull List<AltPageRef>Returns a modifiable list of scheduled page-refs.booleanState if this pagereference shold be shown at the PageGroupbooleanState if this pagereference shold be shown at the SiteMap@Nullable StringGet the sitemap label of this pageref.@Nullable PictureGets the sitemap picture of this pageref.@Nullable StringProvides the reference string for the site map picture, e.g.getUrl()Get the external URL of the pagereferencebooleanIndicates whether the site map picture is set.voidsetKeywords(String keywords) Sets the keywords for this pagereference for the underlying language of this PageLangSpec.voidSet the name of the pagereferencevoidsetRemoteProjectConfiguration(@Nullable RemoteProjectConfiguration configuration) Set RemoteProjectConfiguration used for releated project.voidsetShowInPageGroup(boolean show) Set the state if this pagereference shold be shown in the PageGroupvoidsetShowInSiteMap(boolean show) Set the state if this menu shold be shown at the pagereferencevoidsetSiteMapLabel(String label) Set the label of the sitemapvoidsetSiteMapPicture(@Nullable Picture picture) Sets the sitemap picture for this pagereference.voidSets the sitemap picture as string reference.voidSet the external URL of the pagereferencevoidsetUseExternalUrl(boolean useExternal) Set the state if this pagereference should use an external URL.voidsetUseRelatedProjectUrl(boolean useRelated) State if this pagereference should use an URL to a related project.booleanState if this pagereference should use an external URLbooleanState if this pagereference use an internal URL.booleanState if this pagereference use an URL from a releated project.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface de.espirit.firstspirit.access.store.StoreElement
appendChild, appendChildBefore, delete, exportStoreElement, getChildCount, getChildIndex, getChildren, getChildren, getChildren, getChildren, getCreateWorkflowPermission, getDefinedPrincipalPermissions, getEditor, getElementType, getFirstChild, getIncomingReferences, getInheritedPrincipalPermissions, getLastChanged, getNextSibling, getOutgoingReferences, getParent, getPermission, getPermission, getPermission, getPreviousSibling, getProject, getReferenceName, getReferences, getReferences, getStore, getTreePermission, getWorkflowPermission, getWorkflowPermissions, getWriteLock, hasIncomingReferences, hasPermissions, importStoreElement, importStoreElements, inheritWorkflowPermission, isDeleted, isExportSupported, isFolder, isImportSupported, isLocked, isLockedOnServer, isLockSupported, isPermissionSupported, isWorkflowAllowed, isWorkflowSupported, refresh, removeAllWorkflowPermissions, removeChild, removePermission, removePermission, removePermission, removeWorkflowPermission, replaceChild, save, save, save, setInheritWorkflowPermission, setLock, setLock, setPermission, setPermission, setPermission, setWorkflowPermission, setWorkflowPermissions, setWriteLock, toXml, toXml, toXmlMethods inherited from interface de.espirit.firstspirit.access.Workflowable
getColor, getTask, hasTask, removeTask, setColor, setTask
-
Method Details
-
getName
Get the name of the pagereference- Specified by:
getNamein interfaceStoreElement- Returns:
- name of the pagereference
- Since:
- 3.0
-
setName
Set the name of the pagereference- Parameters:
name- new name of the pagereference- Since:
- 3.0
-
getLanguage
Language getLanguage()Get the language of the pagereference- Returns:
- language of the pagereference
- Since:
- 3.0
-
getShowInPageGroup
boolean getShowInPageGroup()State if this pagereference shold be shown at the PageGroup- Returns:
false- hidden;true- visible- Since:
- 3.0
-
setShowInPageGroup
void setShowInPageGroup(boolean show) Set the state if this pagereference shold be shown in the PageGroup- Parameters:
show-false- hide;true- show- Since:
- 3.0
-
getKeywords
String getKeywords()Gets the keywords of this pagereference.- Returns:
- String the keywords or
nullif no keywords set - Since:
- 3.0.106
-
setKeywords
Sets the keywords for this pagereference for the underlying language of this PageLangSpec.- Parameters:
keywords- the new keywords for this PageLangSpec- Since:
- 3.0.106
-
getShowInSiteMap
boolean getShowInSiteMap()State if this pagereference shold be shown at the SiteMap- Returns:
false- hidden;true- visible- Since:
- 3.0
-
setShowInSiteMap
void setShowInSiteMap(boolean show) Set the state if this menu shold be shown at the pagereference- Parameters:
show-false- hide;true- show- Since:
- 3.0
-
getSiteMapLabel
Get the sitemap label of this pageref.- Returns:
- sitemaplabel
- Since:
- 3.0.98
-
setSiteMapLabel
Set the label of the sitemap- Parameters:
label- the sitemap label- Since:
- 3.0.82
-
hasSiteMapPictureRef
boolean hasSiteMapPictureRef()Indicates whether the site map picture is set.- Returns:
trueif a site map picture is set- Since:
- 3.1.170
- See Also:
-
getSiteMapPicture
Gets the sitemap picture of this pageref.- Returns:
Picturesitemappicture ornullif no picture is set or thereference nameis invalid- Since:
- 3.0.104
- See Also:
-
getSiteMapPictureRef
Provides the reference string for the site map picture, e.g. "media:logo" ornull, if no site map picture is specified.- Returns:
- The reference string or
null. - Since:
- 3.1.170
- See Also:
-
setSiteMapPicture
Sets the sitemap picture for this pagereference.- Parameters:
picture- the new sitemap picture- Since:
- 3.0.104
- See Also:
-
setSiteMapPictureRef
Sets the sitemap picture as string reference.- Since:
- 4.0
-
getUrl
String getUrl()Get the external URL of the pagereference- Returns:
- external URL of the pagereference
- Since:
- 3.0
-
setUrl
Set the external URL of the pagereference- Parameters:
url- new external URL for the pagereference- Since:
- 3.0
-
useInternalUrl
boolean useInternalUrl()State if this pagereference use an internal URL. Using internal url is the default state.
To set useInternalUrl callsetUseExternalUrl(boolean)orsetUseRelatedProjectUrl(boolean)with false- Returns:
false- don't use;true- use- Since:
- 3.0.106
-
useRelatedProjectUrl
boolean useRelatedProjectUrl()State if this pagereference use an URL from a releated project.- Returns:
false- don't use;true- use- Since:
- 3.0.106
-
setUseRelatedProjectUrl
void setUseRelatedProjectUrl(boolean useRelated) State if this pagereference should use an URL to a related project. If called withfalsepagereference will use internal URL (default mode).- Parameters:
useRelated-false-> don't use;true-> use- Since:
- 3.0.106
-
useExternalUrl
boolean useExternalUrl()State if this pagereference should use an external URL- Returns:
false- don't use;true- use- Since:
- 3.0
-
setUseExternalUrl
void setUseExternalUrl(boolean useExternal) Set the state if this pagereference should use an external URL. If called withfalsepagereference will use internal URL (default mode).- Parameters:
useExternal-false-> don't use;true-> use- Since:
- 3.0.103
-
createScheduledPageRef
@NotNull @NotNull de.espirit.firstspirit.store.access.sitestore.AltPageRefImpl createScheduledPageRef(@NotNull @NotNull Page page, @NotNull @NotNull Date validFrom) Creates and adds a scheduled page-ref.- Parameters:
page- page from PageStore that should be taken as an scheduled alternative.validFrom- date from that the new page will be valid.- Returns:
- created scheduled page-ref.
- Since:
- 4.2.400
-
getScheduledPageRefs
Returns a modifiable list of scheduled page-refs.- Returns:
- modifiable list of alternative page-refs.
- Since:
- 4.2.400
- See Also:
-
getRemoteProjectConfiguration
Return RemoteProjectConfiguration used for related project.- Since:
- 4.0
-
setRemoteProjectConfiguration
Set RemoteProjectConfiguration used for releated project.- Since:
- 4.0
-