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.AltPageRefImpl
createScheduledPageRef
(@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 String
getName()
Get the name of the pagereference@Nullable RemoteProjectConfiguration
Return RemoteProjectConfiguration used for related project.@NotNull List<AltPageRef>
Returns a modifiable list of scheduled page-refs.boolean
State if this pagereference shold be shown at the PageGroupboolean
State if this pagereference shold be shown at the SiteMap@Nullable String
Get the sitemap label of this pageref.@Nullable Picture
Gets the sitemap picture of this pageref.@Nullable String
Provides the reference string for the site map picture, e.g.getUrl()
Get the external URL of the pagereferenceboolean
Indicates whether the site map picture is set.void
setKeywords
(String keywords) Sets the keywords for this pagereference for the underlying language of this PageLangSpec.void
Set the name of the pagereferencevoid
setRemoteProjectConfiguration
(@Nullable RemoteProjectConfiguration configuration) Set RemoteProjectConfiguration used for releated project.void
setShowInPageGroup
(boolean show) Set the state if this pagereference shold be shown in the PageGroupvoid
setShowInSiteMap
(boolean show) Set the state if this menu shold be shown at the pagereferencevoid
setSiteMapLabel
(String label) Set the label of the sitemapvoid
setSiteMapPicture
(@Nullable Picture picture) Sets the sitemap picture for this pagereference.void
Sets the sitemap picture as string reference.void
Set the external URL of the pagereferencevoid
setUseExternalUrl
(boolean useExternal) Set the state if this pagereference should use an external URL.void
setUseRelatedProjectUrl
(boolean useRelated) State if this pagereference should use an URL to a related project.boolean
State if this pagereference should use an external URLboolean
State if this pagereference use an internal URL.boolean
State if this pagereference use an URL from a releated project.Methods inherited from interface java.lang.Comparable
compareTo
Methods 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, 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, toXml
Methods 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:
getName
in 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
null
if 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:
true
if a site map picture is set- Since:
- 3.1.170
- See Also:
-
getSiteMapPicture
Gets the sitemap picture of this pageref.- Returns:
Picture
sitemappicture ornull
if no picture is set or thereference name
is 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 withfalse
pagereference 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 withfalse
pagereference 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
-