Interface Project
- All Superinterfaces:
Comparable<Project>,Lockable
FirstSpirit project.
- Since:
- 2.3
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumComment mode options.static enumFallback strategy when an untranslated medium is generated -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProperty to get ImportId map (Map<String, String>) viagetCustomProperties(IMPORT_IDMAP)static final StringProperty to get import layer mapping (Map<String, String>) viagetCustomProperties(IMPORT_IDMAP)static final StringProperty to get source server and project infos of an imported project (Map<String, String>) viagetCustomProperties(IMPORT_IDMAP)static final StringDefault name for the administrators group.static final StringDefault name for the everyone group.static final intDeployment error conditionstatic final intDeployment error conditionstatic final intDeployment error conditionstatic final StringExternal Synchronisation group name.static final StringProperty name for font definitions.static final intCode for indicating an unsuccessful deployment.static final intCode for indicating a successful deployment.static final intTranslation strategystatic final intTranslation strategystatic final intTranslation strategystatic final intTranslation strategy -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccessAllowed(User user) Is a user allowed to acces the projectCreates a default layer and adds it to project layers.voidaddEditorialLanguage(Language language) Adds the given language to the list of editorial languages of this project.voidaddLanguage(Language language) Adds a project language to the projectvoidaddTemplateSet(TemplateSet templateSet) Adds aTemplateSet.voidAdd an user to the project and giving him the access right for this project.booleanbarAdmin()Indicates, whether theserver adminis barred from using/editing the project.booleanIndicates whether the the permission check is activated for this project or not.createExternalGroup(String name, String externalName) Adds an external group to this project.createGroup(String name) Adds an empty internal group to this project.createResolution(String name, String description) Create a new resolution@NotNull TagcreateTag(@NotNull Revision revision, @NotNull String tag, @Nullable String comment, @Nullable Map<String, String> properties) Create a tag for a existing revision.@NotNull TagCreate a tagged revision.Create a new TemplateSetvoiddeleteCustomProperties(@NotNull String name) Delete user defined project properties.booleanIndicates whether absolute links should be generated.@Nullable StringgetActiveWebServer(String webScope) Gets the webserver id for the specified webscopebooleanIndicates whether everyone is allowed to access this project.booleanReturnstrueif project users are allowed to switch the display of language tabs in this project.booleanReturnstrueif project users are allowed to change UIDs.Provides the UID of a media element to be shown when displaying a broken link.Provides a UID of a page reference to be shown when displaying a broken link.Deprecated.getBrokenReferences(boolean release) Deprecated.since 5.2.301, useProjectReferencesAgent.getBrokenReferences(boolean).doubleGet cache weight.getCustomProperties(@NotNull String name) Returns map of user defined properties.Get delete Workflow.intProvides the code for how to handling deployment errors.@Nullable StringGets the description of the projectReturns the list of editorial language for this project.getEMail()Provides the e-mail address to be notified when the project generation is done.Deprecated.since 5.2.301, useProjectReferencesAgent.getExternalReferences(String, boolean).getExternalReferences(boolean release) Deprecated.since 5.2.301, useProjectReferencesAgent.getExternalReferences(String, boolean).getExternalReferences(String category, boolean release) Deprecated.since 5.2.301, useProjectReferencesAgent.getExternalReferences(String, boolean).@NotNull RevisionReturns the first revision up to that the history is complete (i.e. has not been archived).booleanIndicates, whether it is forbidden to use language dependent forms on arbitrary levels in a data hierarchy.Returns a list of allgroupsof this project.Group[]getGroupsArray(User user) Returns groups of this project where the user belongs to (at leastEVERYONE).longgetId()Returns the ID of this project.@NotNull InlinePreviewConstraintsGet themedia constraints settingsof this project.
To change the settings one have to perform the three steps: 1.) get the inline preview constraints, 2.) change the constraints, 3.) set the changed constraints@Nullable LanguagegetLanguage(String abbreviation) Get the content language with the specified abbreviation.Returns a list of all projectLanguages.Returns the layer names defined for this project.Provides the major server version information.Gets the master language.intReturns the maximum allowed width of the inline preview frame or-1if there is no restriction.intProvides the maximum number for acceptable warnings.@NotNull MediaConstraintsGet themedia constraints settingsof this project.
To change the settings one have to perform the three steps: 1.) getting the media constraints, 2.) changing the constraints, 3.) setting the changed constraintslongGet Metadata template id. -1 means no template set.Provides the minor server version information.@NotNull StringgetName()Get the unique project nameGet the layers for which no schema sync's should be performed.Provides the UID of a page reference for a page to be shown if no translation was given.Returns the strategy to use when generating media that is not translatedintProvides the resolution definition for requesting images in their original dimensions.Get Metadata variable permissionsReturn the project logo@Nullable ObjectgetProperty(@NotNull String name) Returns project property with the givennameornullif not found.longProvides the harddisk quota for this project.Provides the e-mail address to inform about quota issues.longProvides the quota for pages allowed in this project.Provides the names of read only layers.@Nullable PageTemplateReturns the template used to generateexternalorrelated projectlinks ofpage reference nodes.
If the redirect template isnulla default redirect html is used:@NotNull ReleaseModeReturns the configured release mode of the project.@Nullable RemoteProjectConfigurationgetRemoteProjectConfiguration(@NotNull String symbolicName) Gets the remote project configuration for the specified symbolic name ornullif not configuration with this name exists for this project.@NotNull List<RemoteProjectConfiguration>Return the list of existing remote project configurations for this project.@NotNull List<RemoteProjectConfiguration>getRemoteProjectConfigurations(@Nullable Filter<RemoteProjectConfiguration> filter) Returns the list of remote project configurations for this project that pass the given filter.booleanIndicates whetherpageswithexternal linksshould generate redirect html (seegetRedirectTemplate()).
Iffalse(default) a redirect meta html will be rendered forpageswhich point to an external target.@Nullable ResolutiongetResolutionByName(String name) Returns the resolution with the given name ornullif no resolution exists in this project with the specified name.Get allresolutionsof this project.@NotNull RevisiongetRevision(long revisionId) Returns the revision with the specified revision id.@NotNull RevisiongetRevision(Date revisionDate) Returns the latest revision with acreation timeless or equal to the time of the given revisionDateShould revision comments be ented for a specific store.getRevisions(@NotNull Revision from, @NotNull Revision to, int maxCount, @Nullable Filter<Revision> filter) Returns a list of revisions in descending order.Get URL for secure media accessbooleanDefault allow if no permissions are configured@Nullable StringGet the uid of the secure media folder.longProvides the build number of the server.booleanIndicates whether comments should be generated.Return the url for the staging application.Returns list of tags descending in revision order.Return list of tags descending in tag creation time (or tag id) order.@NotNull List<TemplateSet>Get allTemplateSets of this project.getUsers()Returns a list of allusers@NotNull UserServiceCreates anUserServicefor this project, or returns a cached instance.@NotNull UserServicegetUserService(long revisionId) Returns a read-only historic view, the provided revision id determines the point in time.@NotNull UserServicegetUserService(@NotNull Revision revision) Returns a readonly userservice with frozen store data at the specified revision.
If the revision is beforegetFirstCompleteRevision()the returned user service may behave unexpectedly.@NotNull UserServicegetUserService(@NotNull Date time) Returns a readonly userservice with frozen store data at the specified point in time.
Set the revision to the nearest fitting revision (the highest revision with a time less or equal to the time specified).booleanIftruedatasetediting access is synced on server - i.e. not two clients can edit the same dataset concurrently.@NotNull UUIDgetUuid()Get the current project UUID.@Nullable PageTemplateReturns the default page template that should be used in webedit, ornullif not specified.@Nullable WorkflowReturns the default workflow that should be used in webedit, ornullif not specified.@Nullable StringReturns the custom preview url of webedit ornull, if default url is used.@NotNull PageFolderReturns the pagefolder that should be used as webedit system folder.@Nullable TemplateSetthe templateset for webeditintthe index of the webedit templatesetbooleanChecks if a logo exists for this project.booleanhasWebAppsConfigChanged(String webScope) Gets the change state for the specified webscope, true if configuration has changed since last deploybooleanisActive()Is this project activebooleanbooleanReturnstrueif recalculating is in progress.booleanGet the activation status of the project based media filename extension restrictions.booleanGet the activation status of the project based media size limitations.booleanIndicates whether the given user is member of this project.booleanReturns if reindexing is in progressvoidremoveEditorialLanguage(Language language) Removes the given language from the list of editorial languages of this project.voidremoveGroup(Group group) Remove a groupvoidremoveLanguage(Language language) Removes a project language from the projectvoidRemove the project logovoidremoveProperty(@NotNull String name) Removes the project property with the givenname.voidremoveResolution(@NotNull Resolution resolution) Remove resolutionvoidremoveTemplateSet(TemplateSet templateSet) RemoveTemplateSet.voidremoveUser(User user) Remove user from projectvoidsetActiveWebServer(String webScope, String associatedWebServer) Sets the specified webserver id on the specified webscope.voidsetAllowEveryone(boolean allowEveryone) Defines to allow everyone to access this project.voidsetAllowLanguageHiding(boolean allowLanguageHiding) Set if project users are allowed to switch the display of language tabs in this project.voidsetAllowUidChanges(boolean value) Set allow UID changes project flag.voidsetBarAdmin(boolean bar) Set to bar theserver adminfrom using/editing the project.voidsetBrokenLinkMedia(String mediaRef) Defines the UID of a media element to be shown when displaying a broken link.voidsetBrokenLinkPage(String pageRef) Defines the UID of a page reference to be used when displaying a broken link.voidsetCacheWeight(double weight) Set cache weight.voidsetCustomProperties(@NotNull String name, Map<String, String> properties) Set user defined project properties.voidsetDeleteWorkflow(Workflow workflow) Set delete Workflow.voidsetDeploymentErrorHandling(int value) Defines the code for how to handling deployment errors.voidsetDescription(@Nullable String description) Sets the description of the projectvoidSets the email address that will be notified when the project generation is ready!voidsetForbidPolyglotDataHierarchy(boolean forbid) Defines, whether to forbid to use language dependent forms on arbitrary levels in data hierarchy.voidsetGenerateAbsoluteLinks(boolean absolute) Defines whether absolute links shall be generated.voidsetInlinePreviewConstraints(@NotNull InlinePreviewConstraints value) Set theinline preview settingsof this project.voidsetLanguages(List<Language> languages) Sets all projects languages.voidDefines the layer names for this project.voidsetMasterLanguage(Language language) Set master language of the projectvoidsetMaximumApplicationWidth(int width) Provide the maximum allowed width of the inline preview frame or-1if there should be no restriction.voidsetMaximumWarningCount(int value) Defines the maximum number of acceptable warnings.voidsetMediaConstraints(@NotNull MediaConstraints value) Set themedia constraints settingsof this project.voidsetMediaExtensionCheckEnabled(boolean enable) Activate the project level based media filename extension restrictions.voidsetMediaSizeLimitEnabled(boolean enable) Activate the project level based file size limitations for files (non-image files) and images.voidsetMetadataTemplate(long templateID) Set Metadata template id.voidsetMetadataTemplate(Template metadataTemplate) Defines the metadata template for this project.voidSets the name of the projectvoidsetNoSchemaSyncLayers(List<String> layers) Defines the layers for which no schema sync should be performed.voidsetNotTranslatedAlternativePage(String pageRef) Defines the UID of a page reference for a page to be shown if no translation is given.voidDefines the strategy to be applied for not translated media.voidsetNotTranslatedPageStrategy(int strategy) Defines the strategy to be applied for not translated pages.voidsetPermissionCheck(boolean check) Activates / Deactivates the permission check for this projectvoidsetPermissionVariable(String variable) Set Metadata variable used for permissionsvoidsetProjectLogo(InputStream data) Set the project logovoidsetProperty(@NotNull String name, @NotNull Object value) Sets the project propertynameto the givenvalue.voidsetQuotaHDD(long quota) Defines the harddisk quota for this project.voidsetQuotaMail(String mail) Defines the e-mail address to inform about quota issues.voidsetQuotaPages(long quota) Defines the quota for pages allowed in this project.voidsetReadOnlyLayers(List<String> layers) Defines the names of read only layers.voidsetRedirectTemplate(@Nullable PageTemplate template) Sets the template which should be used to generateexternalorrelated projectlinks ofpage reference nodes.
If the redirect template is set tonulla default redirect html is used:voidsetReleaseMode(@NotNull ReleaseMode releaseMode) Sets the release mode for the project.voidsetRemoteProjectConfigurations(List<RemoteProjectConfiguration> remoteProjectConfigurations) Sets the list of remote project configuratiosn for this projectvoidsetRenderExternalLinks(boolean renderExternalLinks) Sets therender external linksflag.
Whentrueapagewith an external link will generate like a normal content page.
Withfalse(default) a redirect meta html will be rendered as result page forpageswhich point to an external target.voidsetResolutions(Resolution[] resolutions) Set the Resolutions of this projectvoidsetRevisionCommentMode(Store.Type type, Project.CommentMode mode) Set revison comment mode for a specific store.voidsetSecureAccessURL(String secureAccessURL) Set URL for secure media accessvoidsetSecureDefaultAllow(boolean allow) Set default allow access if no permissions are configured.voidsetSecureMediaFolder(String folderUid) Set fodler used for secure mediavoidsetShouldGenerateComment(boolean gc) Defines whether comments should be generated.voidsetShowReferenceNames(boolean showRefNames) Sets the show reference name parameter for this project which indicates wether reference names should be shown or not (e.g. in create dialogs).voidsetTransportPermissionChecks(boolean checkPermissions) Defines whether store permission checks should be performed during the import with ContentTransport.voidsetUseMappingBasedSchemaMerge(boolean useMappingBasedSchemaMerge) Defines, whether to use the mapping based schema import during the import with ExternalSync/ContentTransport.voidsetUseRelease(boolean useRelease) Activates/deactivates use of the language-independent release mechanism.voidsetUseServerLockForDataset(boolean value) Set howdatasetediting access is synced on server.voidsetUseWebEdit(boolean useWebEdit) Set Webedit usevoidsetWebAppsConfigChanged(String webScope, boolean changed) Sets the specified change state on the specified webscopevoidsetWebeditDefaultTemplate(@Nullable PageTemplate template) Sets the default page template that should be used in webedit, ornullfor no default page template.voidsetWebeditDefaultWorkflow(@Nullable Workflow workflow) Sets the default workflow that should be used in webedit, ornullfor no default workflow.voidsetWebeditPreviewUrl(@Nullable String url) Sets the preview url for webedit.voidsetWebeditSystemFolder(PageFolder folder) Sets the pagefolder which should be used as webedit system folder.voidsetWebEditTemplateSet(TemplateSet webEditTemplateSet) sets the templateSet for webeditbooleanIndicates whether reference names should be shown (e.g. in create dialogs) for this project or not.booleanIndicates, whether the mapping based schema import is used during the import with ExternalSync/ContentTransport or not.booleanReturnstrueif this project uses the release state,falseif it is an auto release project.booleanIndicates whether store permission checks are performed during the import with ContentTransport.booleanShould Webedit be usedMethods inherited from interface java.lang.Comparable
compareTo
-
Field Details
-
FONTS
Property name for font definitions.- Since:
- 4.0.17
- See Also:
-
DEFAULT_ADMIN_GROUP_NAME
Default name for the administrators group.- Since:
- 4.0.17
- See Also:
-
DEFAULT_EVERYONE_GROUP_NAME
Default name for the everyone group.- Since:
- 4.0.17
- See Also:
-
EXTERNAL_SYNCHRONISATION_GROUP_NAME
External Synchronisation group name. Members in this group are allowed to use the external synchronisation function.- Since:
- 5.1.206
- See Also:
-
LAST_DEPLOYMENT_OK
static final int LAST_DEPLOYMENT_OKCode for indicating a successful deployment.- Since:
- 4.0.17
- See Also:
-
LAST_DEPLOYMENT_NOT_OK
static final int LAST_DEPLOYMENT_NOT_OKCode for indicating an unsuccessful deployment.- Since:
- 4.0.17
- See Also:
-
STRATEGY_IGNORE_NOT_TRANSLATED
static final int STRATEGY_IGNORE_NOT_TRANSLATEDTranslation strategy- Since:
- 2.3
- See Also:
-
STRATEGY_REPLACE_NOT_TRANSLATED_WITH_MASTER_LANGUAGE
static final int STRATEGY_REPLACE_NOT_TRANSLATED_WITH_MASTER_LANGUAGETranslation strategy- Since:
- 2.3
- See Also:
-
STRATEGY_REPLACE_NOT_TRANSLATED_WITH_BROKEN_LINK_PAGE
static final int STRATEGY_REPLACE_NOT_TRANSLATED_WITH_BROKEN_LINK_PAGETranslation strategy- Since:
- 2.3
- See Also:
-
STRATEGY_REPLACE_NOT_TRANSLATED_WITH_SPECIAL_PAGE
static final int STRATEGY_REPLACE_NOT_TRANSLATED_WITH_SPECIAL_PAGETranslation strategy- Since:
- 2.3
- See Also:
-
DEPLOY_IF_ZERO_FATALS_ZERO_ERRORS_WARNING_COUNT_NOT_EXCEEDED
static final int DEPLOY_IF_ZERO_FATALS_ZERO_ERRORS_WARNING_COUNT_NOT_EXCEEDEDDeployment error condition- Since:
- 2.3
- See Also:
-
DEPLOY_IF_ZERO_FATALS_ZERO_ERRORS
static final int DEPLOY_IF_ZERO_FATALS_ZERO_ERRORSDeployment error condition- Since:
- 2.3
- See Also:
-
DEPLOY_IF_ZERO_FATALS
static final int DEPLOY_IF_ZERO_FATALSDeployment error condition- Since:
- 2.3
- See Also:
-
CUSTOM_PROPERTY_IMPORT_IDMAP
Property to get ImportId map (Map<String, String>) viagetCustomProperties(IMPORT_IDMAP)- Since:
- 4.1.10
- See Also:
-
CUSTOM_PROPERTY_IMPORT_LAYERMAP
Property to get import layer mapping (Map<String, String>) viagetCustomProperties(IMPORT_IDMAP)- Since:
- 4.1.16
- See Also:
-
CUSTOM_PROPERTY_IMPORT_SOURCE_INFOS
Property to get source server and project infos of an imported project (Map<String, String>) viagetCustomProperties(IMPORT_IDMAP)- Since:
- 4.1.16
- See Also:
-
-
Method Details
-
getName
Get the unique project name- Returns:
- The name
- Since:
- 2.3
-
setName
Sets the name of the project- Parameters:
name- the new name- Since:
- 2.3
-
getDescription
Gets the description of the project- Returns:
- the description
- Since:
- 2.3
-
setDescription
Sets the description of the project- Parameters:
description- the new description. Ifnull, the description is set to an empty string.- Since:
- 2.3
-
getLanguages
Returns a list of all projectLanguages. These languages are used to edit the language-dependent content of the project. Project andeditorial languagesdon't have to be a subset of each other, they even can be completely disjunctive.- Returns:
- list of (content)
Languages. - Since:
- 4.0.17
- See Also:
-
setLanguages
Sets all projects languages. These languages are used to edit the language-dependent content of the project. Project andeditorial languagesdon't have to be a subset of each other, they even can be completely disjunctive.- Parameters:
languages- list of (content)Languages, master language must be first.- Since:
- 4.0.17
-
getLanguage
Get the content language with the specified abbreviation.- Parameters:
abbreviation- seeLanguage.getAbbreviation()- Returns:
- the language with the provided abbreviation or
nullif there is no matching language - Since:
- 4.0.63
-
addLanguage
Adds a project language to the project- Parameters:
language- the language- Since:
- 2.3
-
removeLanguage
Removes a project language from the project- Parameters:
language- the language- Since:
- 2.3
-
getMasterLanguage
Language getMasterLanguage()Gets the master language.- Returns:
- the master language
- Since:
- 4.0.17
-
getEditorialLanguages
Returns the list of editorial language for this project. These languages are used to edit language dependent display names. Editorial andproject languagesdon't have to be a subset of each other, they even can be completely disjunctive.- Returns:
- the editorial languages for this project
- Since:
- 4.0.29
- See Also:
-
addEditorialLanguage
Adds the given language to the list of editorial languages of this project.- Parameters:
language- the language to add to editorial languages- Since:
- 4.0.29
-
removeEditorialLanguage
Removes the given language from the list of editorial languages of this project.- Parameters:
language- the language to remove- Since:
- 4.0.29
-
showReferenceNames
boolean showReferenceNames()Indicates whether reference names should be shown (e.g. in create dialogs) for this project or not.- Returns:
trueif reference names should be shown,falseotherwise- Since:
- 4.0.29
-
setShowReferenceNames
void setShowReferenceNames(boolean showRefNames) Sets the show reference name parameter for this project which indicates wether reference names should be shown or not (e.g. in create dialogs).- Parameters:
showRefNames-trueto show reference names,falseto hide reference names- Since:
- 4.0.29
- See Also:
-
getOriginalResolution
Resolution getOriginalResolution()Provides the resolution definition for requesting images in their original dimensions.- Returns:
- The original resolution.
- Since:
- 2.3.15
-
setMasterLanguage
Set master language of the project- Parameters:
language- the new master language- Since:
- 2.3
-
getResolutions
List<Resolution> getResolutions()Get allresolutionsof this project.- Returns:
resolutionsof this project- Since:
- 4.0.17
-
setResolutions
Set the Resolutions of this project- Parameters:
resolutions- A vector containing resolutions- Since:
- 4.0.17
- See Also:
-
getResolutionByName
Returns the resolution with the given name ornullif no resolution exists in this project with the specified name.- Parameters:
name- name to specifiy the resolution- Returns:
- resolution with the given name or
null - Since:
- 4.0.17
-
createResolution
Create a new resolution- Returns:
- the new resolution
- Since:
- 2.3
-
removeResolution
Remove resolution- Parameters:
resolution- the resolution to remove, must not benull- Throws:
IllegalArgumentException- if an attempt is made to remove anoriginalresolutionSecurityException- if the current user is not allowed to remove the resolution- Since:
- 2.3
-
isActive
boolean isActive()Is this project active- Returns:
- Is active
- Since:
- 2.3
-
getGroups
Returns a list of allgroupsof this project.- Returns:
- list of
groups - Since:
- 4.0.17
-
getGroups
Returns a list ofgroupsof this project where the given user belongs to (at leastEVERYONE), ornullif the given user isn'tallowedto access this project.- Returns:
- list of
Groups - Since:
- 4.0.17
-
getGroupsArray
Returns groups of this project where the user belongs to (at leastEVERYONE).- Parameters:
user- User.- Returns:
- project groups where the user belongs to.
- Since:
- 4.0.17
-
removeGroup
Remove a group- Parameters:
group- the group- Since:
- 2.3
-
createGroup
Adds an empty internal group to this project.- Parameters:
name- unique name of the group- Returns:
- the new group
- Throws:
IllegalArgumentException- if a group with this name already exists.- Since:
- 2.3
-
createExternalGroup
Adds an external group to this project.- Parameters:
name- unique name of the group.externalName- external name (or identifier) of the group.- Returns:
- the new group.
- Throws:
IllegalArgumentException- if a group with this name already exists.- Since:
- 4.0.17
-
isAdmin
- Parameters:
user- to test for project admin.- Returns:
trueif the givenuseris admin or member of a project admin-group.- Since:
- 4.0.17
-
isMember
Indicates whether the given user is member of this project. Returnstrueif- the given user is an server
adminand this project allows admins (!barAdmin()) - this project
allows every user - the given user is
explicit memberof this project - an external group approves him (implicit membership)
- Parameters:
user- user to test.- Returns:
trueif the givenuseris member of this project.- Since:
- 4.0.17
- the given user is an server
-
getUsers
Returns a list of allusers- Returns:
- list of all
users - Since:
- 4.0.17
-
addUser
Add an user to the project and giving him the access right for this project. This changes needs to be propagated to the server by callingLockable.save()- Parameters:
user- the user to add- Since:
- 2.3
- See Also:
-
removeUser
Remove user from project- Parameters:
user- the user to remove- Since:
- 2.3
-
accessAllowed
Is a user allowed to acces the project- Parameters:
user- the user- Returns:
- access allowed
- Since:
- 2.3
- See Also:
-
getTemplateSets
Get allTemplateSets of this project.- Returns:
- an unmodifiable list containing
TemplateSets - Since:
- 4.0.17
- See Also:
-
addTemplateSet
Adds aTemplateSet.- Parameters:
templateSet- theTemplateSetto add- Since:
- 4.0.17
- See Also:
-
removeTemplateSet
RemoveTemplateSet.- Parameters:
templateSet- theTemplateSetto remove- Since:
- 2.3
- See Also:
-
createTemplateSet
TemplateSet createTemplateSet()Create a new TemplateSet- Returns:
- the TemplateSet
- Since:
- 2.3
-
setProjectLogo
Set the project logo- Parameters:
data- the stream containing the logo. supported image formats: GIF or JPEG.- Throws:
IOException- connection or save problem- Since:
- 2.3
-
getProjectLogo
Return the project logo- Returns:
- the project logo
- Throws:
IOException- connection problem- Since:
- 4.0.17
-
hasProjectLogo
boolean hasProjectLogo()Checks if a logo exists for this project.- Returns:
trueif a logo exists,falseotherwise- Since:
- 5.0.20
-
removeProjectLogo
void removeProjectLogo()Remove the project logo- Since:
- 2.3
-
getSecureMediaFolder
Get the uid of the secure media folder. All elements in this folder are considered as to be secured. Anullvalue means no secure folder is defined.- Returns:
- uid of the secure media folder or
nullif no secure media folder is defined - Since:
- 4.0.24
-
getPermissionVariable
String getPermissionVariable()Get Metadata variable permissions- Returns:
- Metadata variable permissions
- Since:
- 3.1.158
-
setSecureMediaFolder
Set fodler used for secure media- Parameters:
folderUid- Metadata folderUid used for secure media- Since:
- 4.0.24
-
setPermissionVariable
Set Metadata variable used for permissions- Parameters:
variable- Metadata variable used for permissions- Since:
- 3.1.158
-
getSecureAccessURL
String getSecureAccessURL()Get URL for secure media access- Returns:
- URL for secure media access
- Since:
- 2.3.13
-
setSecureAccessURL
Set URL for secure media access- Parameters:
secureAccessURL- URL for secure media access- Since:
- 2.3.13
-
getSecureDefaultAllow
boolean getSecureDefaultAllow()Default allow if no permissions are configured- Returns:
- allow access if no permission are configured
- Since:
- 4.0.25
-
setSecureDefaultAllow
void setSecureDefaultAllow(boolean allow) Set default allow access if no permissions are configured.- Parameters:
allow- default allow access- Since:
- 4.0.25
-
useWebEdit
boolean useWebEdit()Should Webedit be used- Returns:
- Should Webedit be used
- Since:
- 3.0.67
-
getWebEditTemplateSet
the templateset for webedit- Returns:
- the webeditTemplateSet
- Since:
- 3.0.67
-
getWebEditTemplateSetIndex
int getWebEditTemplateSetIndex()the index of the webedit templateset- Returns:
- the index
- Since:
- 3.0.69
-
setWebEditTemplateSet
sets the templateSet for webedit- Parameters:
webEditTemplateSet- the templateSet for webedit- Since:
- 3.0.67
-
setUseWebEdit
void setUseWebEdit(boolean useWebEdit) Set Webedit use- Parameters:
useWebEdit- webedit use- Since:
- 3.0.67
-
setAllowEveryone
void setAllowEveryone(boolean allowEveryone) Defines to allow everyone to access this project.- Parameters:
allowEveryone-true, to allow everyone.- Since:
- 2.3.14
-
getAllowEveryone
boolean getAllowEveryone()Indicates whether everyone is allowed to access this project.- Returns:
true, if everyone has access.- Since:
- 2.3.14
- See Also:
-
setBarAdmin
void setBarAdmin(boolean bar) Set to bar theserver adminfrom using/editing the project.- Parameters:
bar- Iftrue, theserver adminmay not use the project.- Since:
- 3.1.352
-
barAdmin
boolean barAdmin()Indicates, whether theserver adminis barred from using/editing the project.- Returns:
true, ifserver adminis barred,falseotherwise- Since:
- 3.1.352
-
checkPermissions
boolean checkPermissions()Indicates whether the the permission check is activated for this project or not.- Returns:
trueif the permission check is activated for this project,falseotherwise.- Since:
- 2.3.18
- See Also:
-
setPermissionCheck
void setPermissionCheck(boolean check) Activates / Deactivates the permission check for this project- Parameters:
check-trueto activate permission check,falseto deactivate- Since:
- 2.3.18
- See Also:
-
getId
long getId()Returns the ID of this project.- Returns:
- id of this project
- Since:
- 4.0.55
-
useRelease
boolean useRelease()Returnstrueif this project uses the release state,falseif it is an auto release project.
This method does not provide information about whether the used release mode is language-dependent or independent.- Returns:
falseif it is an auto release project,trueotherwise- Since:
- 3.0.4
- See Also:
-
setUseRelease
void setUseRelease(boolean useRelease) Activates/deactivates use of the language-independent release mechanism.- Since:
- 4.0.17
- See Also:
-
getReleaseMode
Returns the configured release mode of the project.- Since:
- 5.2.250905
-
setReleaseMode
Sets the release mode for the project.- Since:
- 5.2.250905
- See Also:
-
getLayers
Returns the layer names defined for this project. Modifications of the returned list will have no effect until youset the list.- Returns:
- layer names of this project
- Since:
- 3.0.8
-
setLayers
Defines the layer names for this project.- Parameters:
layers- The layer names.- Since:
- 4.0.17
-
getReadOnlyLayers
Provides the names of read only layers. Modifications of the returned will have no effect until youset the list.- Returns:
- A list of layer names.
- Since:
- 3.0.8
-
setReadOnlyLayers
Defines the names of read only layers.- Parameters:
layers- A list of layer names.- Since:
- 4.0.17
-
getMetadataTemplate
long getMetadataTemplate()Get Metadata template id. -1 means no template set.- Since:
- 3.0.64
-
setMetadataTemplate
void setMetadataTemplate(long templateID) Set Metadata template id. Set -1 for no template.- Since:
- 3.0.64
-
setMetadataTemplate
Defines the metadata template for this project.- Parameters:
metadataTemplate- The metadata template.- Since:
- 4.0.17
-
getWebeditDefaultTemplate
Returns the default page template that should be used in webedit, ornullif not specified.- Returns:
- default page template
- Since:
- 5.0.100
-
setWebeditDefaultTemplate
Sets the default page template that should be used in webedit, ornullfor no default page template.- Parameters:
template- the default page template- Since:
- 5.0.100
-
getWebeditDefaultWorkflow
Returns the default workflow that should be used in webedit, ornullif not specified.- Returns:
- default workflow
- Since:
- 5.2.13
-
setWebeditDefaultWorkflow
Sets the default workflow that should be used in webedit, ornullfor no default workflow.- Parameters:
workflow- the default workflow- Since:
- 5.2.13
-
getWebeditSystemFolder
Returns the pagefolder that should be used as webedit system folder.- Returns:
- webedit system folder
- Since:
- 5.0.3
-
setWebeditSystemFolder
Sets the pagefolder which should be used as webedit system folder.- Parameters:
folder- webedit system folder- Since:
- 5.0.3
-
getRedirectTemplate
Returns the template used to generateexternalorrelated projectlinks ofpage reference nodes.
If the redirect template isnulla default redirect html is used:<head><meta http-equiv="refresh" content="0; URL=...."/></head>
- Returns:
- the template or
nullif no such template is configured (default). - Since:
- 4.1.44
- See Also:
-
setRedirectTemplate
Sets the template which should be used to generateexternalorrelated projectlinks ofpage reference nodes.
If the redirect template is set tonulla default redirect html is used:<head><meta http-equiv="refresh" content="0; URL=...."/></head>
- Parameters:
template- a template ornullto clear- Since:
- 4.1.44
- See Also:
-
getNoSchemaSyncLayers
Get the layers for which no schema sync's should be performed. Modifications of the returned list will have no effect until youset the list.- Returns:
- a list containing layer names (java.lang.String)
- Since:
- 3.0.78
-
setNoSchemaSyncLayers
Defines the layers for which no schema sync should be performed.- Parameters:
layers- A list of layer names.- Since:
- 4.0.17
-
getBrokenReferences
Deprecated.since 5.2.301, useProjectReferencesAgent.getBrokenReferences(boolean).Returns current broken references of this project (shortcut forgetBrokenReferences(false)).- Returns:
- current broken references of this project.
- Since:
- 4.0.17
-
getBrokenReferences
Deprecated.since 5.2.301, useProjectReferencesAgent.getBrokenReferences(boolean).Returns current or release broken references of this project.- Parameters:
release- current (false) or release (true) broken references.- Returns:
- current or release broken references of this project.
- Since:
- 4.0.120
-
getExternalReferences
Deprecated.since 5.2.301, useProjectReferencesAgent.getExternalReferences(String, boolean).Returns current external references of this project (shortcut forgetExternalReferences(false)).- Returns:
- current external references of this project.
- Since:
- 4.0.120
-
getExternalReferences
Deprecated.since 5.2.301, useProjectReferencesAgent.getExternalReferences(String, boolean).Returns current or release external references of this project.- Parameters:
release- current (false) or release (true) external references.- Returns:
- current or release external references of this project.
- Since:
- 4.0.120
-
getExternalReferences
Deprecated.since 5.2.301, useProjectReferencesAgent.getExternalReferences(String, boolean).Returns project's current or release external references of the giventype.- Parameters:
release- current (false) or release (true) external references.category- external reference category.- Returns:
- current or release external references of the given type.
- Since:
- 4.0.120
-
getRemoteProjectConfiguration
@Nullable @Nullable RemoteProjectConfiguration getRemoteProjectConfiguration(@NotNull @NotNull String symbolicName) Gets the remote project configuration for the specified symbolic name ornullif not configuration with this name exists for this project.- Parameters:
symbolicName- name of the remote project configuaration- Returns:
- the remote project configuration specified by the given name or
null - Since:
- 3.1.174
-
getRemoteProjectConfigurations
Return the list of existing remote project configurations for this project. The list is modifiable. For changing the list of remote configurations one has towrite backa modified list andsavethe change.- Returns:
- list of existing remote project configurations
- Since:
- 3.1.174
- See Also:
-
getRemoteProjectConfigurations
@NotNull @NotNull List<RemoteProjectConfiguration> getRemoteProjectConfigurations(@Nullable @Nullable Filter<RemoteProjectConfiguration> filter) Returns the list of remote project configurations for this project that pass the given filter.- Parameters:
filter- A filter to be passed by remote projects.- Returns:
- A list of configurations.
- Since:
- 4.0.26
-
setRemoteProjectConfigurations
Sets the list of remote project configuratiosn for this project- Parameters:
remoteProjectConfigurations-- Since:
- 4.0.17
-
getMajorVersion
String getMajorVersion()Provides the major server version information.- Returns:
- major server version info (creation/importing time).
- Since:
- 4.0.17
-
getMinorVersion
String getMinorVersion()Provides the minor server version information.- Returns:
- minor server version info (creation/importing time).
- Since:
- 4.0.17
-
getServerBuild
long getServerBuild()Provides the build number of the server.- Returns:
- server build number (creation/importing time).
- Since:
- 4.0.17
-
getEMail
String getEMail()Provides the e-mail address to be notified when the project generation is done.- Returns:
- An e-mail address.
- Since:
- 4.0.17
-
setEMail
Sets the email address that will be notified when the project generation is ready!- Since:
- 4.0.17
-
getShouldGenerateComment
boolean getShouldGenerateComment()Indicates whether comments should be generated.- Returns:
true, if comments shall be generated.- Since:
- 4.0.17
-
setShouldGenerateComment
void setShouldGenerateComment(boolean gc) Defines whether comments should be generated.- Parameters:
gc-true, for generating comments.- Since:
- 4.0.17
-
generateAbsoluteLinks
boolean generateAbsoluteLinks()Indicates whether absolute links should be generated.- Returns:
true, if absolute links shall be generated.- Since:
- 4.0.17
-
setGenerateAbsoluteLinks
void setGenerateAbsoluteLinks(boolean absolute) Defines whether absolute links shall be generated.- Parameters:
absolute-true, to enable generating absolute links.- Since:
- 4.0.17
-
getRenderExternalLinks
boolean getRenderExternalLinks()Indicates whetherpageswithexternal linksshould generate redirect html (seegetRedirectTemplate()).
Iffalse(default) a redirect meta html will be rendered forpageswhich point to an external target. Iftrueapagewill be generated like normal content pages.- Returns:
trueif apagewith anexternal targetshould be generated like normal content page,falseto generate a redirect meta html- Since:
- 4.0.17
- See Also:
-
setRenderExternalLinks
void setRenderExternalLinks(boolean renderExternalLinks) Sets therender external linksflag.
Whentrueapagewith an external link will generate like a normal content page.
Withfalse(default) a redirect meta html will be rendered as result page forpageswhich point to an external target.- Parameters:
renderExternalLinks- providefalseto generate a redirect html forpageswhich point to an external target.- Since:
- 4.0.17
- See Also:
-
getBrokenLinkPage
String getBrokenLinkPage()Provides a UID of a page reference to be shown when displaying a broken link.- Returns:
- A page reference UID.
- Since:
- 4.0.17
-
setBrokenLinkPage
Defines the UID of a page reference to be used when displaying a broken link.- Parameters:
pageRef- The UID of a page reference.- Since:
- 4.0.17
-
getBrokenLinkMedia
String getBrokenLinkMedia()Provides the UID of a media element to be shown when displaying a broken link.- Returns:
- A media UID.
- Since:
- 4.0.17
-
setBrokenLinkMedia
Defines the UID of a media element to be shown when displaying a broken link.- Parameters:
mediaRef- A media UID.- Since:
- 4.0.17
-
getNotTranslatedAlternativePage
String getNotTranslatedAlternativePage()Provides the UID of a page reference for a page to be shown if no translation was given.- Returns:
- A page reference UID.
- Since:
- 4.0.17
-
setNotTranslatedAlternativePage
Defines the UID of a page reference for a page to be shown if no translation is given.- Parameters:
pageRef- The UID of a page reference.- Since:
- 4.0.17
-
getNotTranslatedPageStrategy
int getNotTranslatedPageStrategy()Returns one of the following values:- Since:
- 3.1
-
setNotTranslatedPageStrategy
void setNotTranslatedPageStrategy(int strategy) Defines the strategy to be applied for not translated pages.- Parameters:
strategy- The strategy code.- Since:
- 4.0.17
- See Also:
-
getNotTranslatedMediaStrategy
Project.MediaNotTranslatedStrategy getNotTranslatedMediaStrategy()Returns the strategy to use when generating media that is not translated- Since:
- 5.2.220208
-
setNotTranslatedMediaStrategy
Defines the strategy to be applied for not translated media.- Parameters:
strategy- The strategy- Since:
- 5.2.220208
- See Also:
-
setDeploymentErrorHandling
void setDeploymentErrorHandling(int value) Defines the code for how to handling deployment errors.- Parameters:
value- The handling code.- Since:
- 4.0.17
- See Also:
-
getDeploymentErrorHandling
int getDeploymentErrorHandling()Provides the code for how to handling deployment errors.- Returns:
- The code
- Since:
- 4.0.17
- See Also:
-
setMaximumWarningCount
void setMaximumWarningCount(int value) Defines the maximum number of acceptable warnings.- Parameters:
value- The maximum.- Since:
- 4.0.17
-
getMaximumWarningCount
int getMaximumWarningCount()Provides the maximum number for acceptable warnings.- Returns:
- The maximum.
- Since:
- 4.0.17
-
setQuotaHDD
void setQuotaHDD(long quota) Defines the harddisk quota for this project.- Parameters:
quota- The quota in Megabytes.- Since:
- 4.0.17
-
getQuotaHDD
long getQuotaHDD()Provides the harddisk quota for this project.- Returns:
- The quota in MB.
- Since:
- 4.0.17
-
setQuotaPages
void setQuotaPages(long quota) Defines the quota for pages allowed in this project.- Parameters:
quota- The page quota.- Since:
- 4.0.17
-
getQuotaPages
long getQuotaPages()Provides the quota for pages allowed in this project.- Returns:
- The page quota.
- Since:
- 4.0.17
-
setQuotaMail
Defines the e-mail address to inform about quota issues.- Parameters:
mail- An e-mail address.- Since:
- 4.0.17
-
getQuotaMail
String getQuotaMail()Provides the e-mail address to inform about quota issues.- Returns:
- An e-mail address.
- Since:
- 4.0.17
-
addDefaultLayer
String addDefaultLayer()Creates a default layer and adds it to project layers.
The layer will be saved serversided. The project has to be saved to apply changes. If project won't be saved the layer should be deleted manually.- Returns:
- String The layer name
- Since:
- 4.0.
-
getCacheWeight
double getCacheWeight()Get cache weight. Cache Weight ist used for distributing server cache memory to projects.- Since:
- 4.0
-
setCacheWeight
void setCacheWeight(double weight) Set cache weight. Cache Weight ist used for distributing server cache memory to projects.- Since:
- 4.0
-
getUserService
Creates anUserServicefor this project, or returns a cached instance.- Returns:
UserServiceinstance- Since:
- 4.0
-
getUserService
Returns a readonly userservice with frozen store data at the specified point in time.
Set the revision to the nearest fitting revision (the highest revision with a time less or equal to the time specified).- Parameters:
time- a valid date- Throws:
IllegalArgumentException- if there is no fitting revision- Since:
- 4.0.46
- See Also:
-
getUserService
Returns a readonly userservice with frozen store data at the specified revision.
If the revision is beforegetFirstCompleteRevision()the returned user service may behave unexpectedly.- Parameters:
revision- a valid revision.- Since:
- 4.0.46
- See Also:
-
getUserService
Returns a read-only historic view, the provided revision id determines the point in time. If the revision is beforegetFirstCompleteRevision()the returned user service may behave unexpectedly.- Parameters:
revisionId- a valid revision id- Returns:
- A read only user service.
- Since:
- 4.0.46
- See Also:
-
getRevision
Returns the revision with the specified revision id.- Parameters:
revisionId- the id of the revision- Returns:
- the revision specified by the given revisionId
- Throws:
IllegalArgumentException- if no revision was found with the specified id- Since:
- 4.0.122
-
getRevision
Returns the latest revision with acreation timeless or equal to the time of the given revisionDate- Parameters:
revisionDate- UseHistoryProvider.EVER_SINCEto get the first revision,HistoryProvider.UNTIL_NOW(and NOT "new Date()") to get the latest revision of this project.- Returns:
- the latest revision with a creation time less or equal the specified revisionDate
- Since:
- 4.0.122
-
getRevisions
List<Revision> getRevisions(@NotNull @NotNull Revision from, @NotNull @NotNull Revision to, int maxCount, @Nullable @Nullable Filter<Revision> filter) Returns a list of revisions in descending order.from to ---I-------------------------------------------------I---> revision I<---------------------------->I result list containing "maxCount" entries
The given filter must be reachable on server. Therefor it must be at least exists in a library module with scopeserver. SeeRevisionFilterfor common revision filter implementations.- Parameters:
from- Marks lower revision bound, so that revisions must be of this revision or younger (higher id) to pass.to- Marks upper revision bound, so that revisions must be of this revision or older (lower id) to pass. UsegetRevision(new Date())to retrieve revisions up to date.maxCount- The maximum count of returned revisions. UseHistoryProvider.ALL_REVISIONSto get all revisions in specified range.filter- Filter to be passed. Ifnull, accepts all elements. The given filter must be reachable in fs server, at least as library module with scopeserver.- Returns:
- A list of revisions that passed the given criteria in descending order.
- Since:
- 4.0.122
- See Also:
-
getCustomProperties
Returns map of user defined properties.- Parameters:
name- Scope of the properties- Returns:
- Map with properties or null
- Since:
- 4.0
-
setCustomProperties
Set user defined project properties.- Parameters:
name- Scope of the properties- Since:
- 4.0
-
deleteCustomProperties
Delete user defined project properties.- Parameters:
name- Scope of the properties- Since:
- 4.0
-
getProperty
Returns project property with the givennameornullif not found.- Parameters:
name- property name.- Returns:
- project property or
null. - Since:
- 4.0.47
-
removeProperty
Removes the project property with the givenname.- Parameters:
name- property name.- Since:
- 4.0.47
-
setProperty
Sets the project propertynameto the givenvalue.- Parameters:
name- property name.value- property value.- Since:
- 4.0.47
-
setActiveWebServer
Sets the specified webserver id on the specified webscope. Values for web scopeWebEnvironment.WebScope.LIVEare ignored- Parameters:
webScope- webscope the webserver is used forassociatedWebServer- the id of specified webserver- Since:
- 4.0.19
-
getActiveWebServer
Gets the webserver id for the specified webscope- Parameters:
webScope- webscope the webserver is used for- Returns:
- the id of specified webserver or null for web scope
WebEnvironment.WebScope.LIVE - Since:
- 4.0.19
-
setWebAppsConfigChanged
Sets the specified change state on the specified webscope- Parameters:
webScope- webscope the webserver is used forchanged- configuration has changed- Since:
- 4.0.19
-
hasWebAppsConfigChanged
Gets the change state for the specified webscope, true if configuration has changed since last deploy- Parameters:
webScope- webscope the webserver is used for- Returns:
- true if configuration has changed since last deploy
- Since:
- 4.0.19
-
getRevisionCommentMode
Should revision comments be ented for a specific store.- Since:
- 4.0.23
-
setRevisionCommentMode
Set revison comment mode for a specific store.- Since:
- 4.0.23
-
isReindexingSearch
boolean isReindexingSearch()Returns if reindexing is in progress- Returns:
- true if reindexing is in progress, false otherwise
- Since:
- 4.0.23
-
isCalculatingReferences
boolean isCalculatingReferences()Returnstrueif recalculating is in progress. Shortcut forProjectReferencesAgent.isRebuildingReferences().- Returns:
trueif recalculating of references is in progress,falseotherwise.- Since:
- 4.0.23
- See Also:
-
getDeleteWorkflow
Workflow getDeleteWorkflow()Get delete Workflow. Returns null if no delete Workflow is set.- Since:
- 4.0.120
-
setDeleteWorkflow
Set delete Workflow. Set to null if no delete Workflow should be used.- Since:
- 4.0.120
-
getStagingUrl
String getStagingUrl()Return the url for the staging application.- Since:
- 4.1
-
setMediaSizeLimitEnabled
void setMediaSizeLimitEnabled(boolean enable) Activate the project level based file size limitations for files (non-image files) and images.- Parameters:
enable-trueactivate the media file size limitations- Since:
- 4.1
- See Also:
-
isMediaSizeLimitEnabled
boolean isMediaSizeLimitEnabled()Get the activation status of the project based media size limitations.- Returns:
trueif enabled otherwisefalse- Since:
- 4.1
-
setMediaExtensionCheckEnabled
void setMediaExtensionCheckEnabled(boolean enable) Activate the project level based media filename extension restrictions.- Parameters:
enable-trueto enable otherwisefalse- Since:
- 4.1
-
isMediaExtensionCheckEnabled
boolean isMediaExtensionCheckEnabled()Get the activation status of the project based media filename extension restrictions.- Returns:
trueif enabled otherwisefalse- Since:
- 4.1
-
getMediaConstraints
Get themedia constraints settingsof this project.
To change the settings one have to perform the three steps: 1.) getting the media constraints, 2.) changing the constraints, 3.) setting the changed constraints- Returns:
- a clone of the actual
MediaConstraints - Since:
- 4.1
- See Also:
-
setMediaConstraints
Set themedia constraints settingsof this project. The provided instance is cloned so changing the instance after setting has no effect for this project. You have to set the instance again to persist the changes.
To change the settings one have to perform the three steps: 1.) getting the media constraints, 2.) changing the constraints, 3.) setting the changed constraints- Parameters:
value- the project level based media constraints settings- Since:
- 4.1
- See Also:
-
getMaximumApplicationWidth
int getMaximumApplicationWidth()Returns the maximum allowed width of the inline preview frame or-1if there is no restriction.- Since:
- 4.2.20
-
setMaximumApplicationWidth
void setMaximumApplicationWidth(int width) Provide the maximum allowed width of the inline preview frame or-1if there should be no restriction.- Since:
- 4.2.20
-
getInlinePreviewConstraints
Get themedia constraints settingsof this project.
To change the settings one have to perform the three steps: 1.) get the inline preview constraints, 2.) change the constraints, 3.) set the changed constraints- Since:
- 4.2.20
- See Also:
-
setInlinePreviewConstraints
Set theinline preview settingsof this project. The provided instance is cloned so changing the instance after setting has no effect for this project. You have to set the instance again to persist the changes.
To change the settings one have to perform the three steps: 1.) get the inline preview constraints, 2.) change the constraints, 3.) set the changed constraints- Since:
- 4.2.20
- See Also:
-
createTag
@NotNull @NotNull Tag createTag(@NotNull @NotNull String tag, @Nullable @Nullable String comment, @Nullable @Nullable Map<String, String> properties) Create a tagged revision.
If the tag name end with the suffix 'Task', archiving may remove the tag if the revision is archived.- Parameters:
tag- Name for the tag, must not benulland not empty aftertrimmed.comment- Comment for the tag, may benull.properties- map containing custom user properties, may benull.- Returns:
- The created tag.
- Since:
- 4.2.400
-
createTag
@NotNull @NotNull Tag createTag(@NotNull @NotNull Revision revision, @NotNull @NotNull String tag, @Nullable @Nullable String comment, @Nullable @Nullable Map<String, String> properties) Create a tag for a existing revision.
If the tag name end with the suffix 'Task', archiving may remove the tag if the revision is archived.- Parameters:
revision- The revision to tag, must not benulltag- Name for the tag, must not benulland not empty aftertrimmed.comment- Comment for the tag, may benull.properties- map containing custom user properties, may benull.- Returns:
- The created tag.
- Since:
- 4.2.400
-
getTags
Returns list of tags descending in revision order. Tags with the same revision will be returned in descending tag creation time order.- Parameters:
revision- The revision to start, use null for latest created revision.maxRevisionCount- The maximum count of revisions to search for tags. Use 0 for unlimited count.- Returns:
- The list of tags
- Since:
- 4.2.400
-
getTags
Return list of tags descending in tag creation time (or tag id) order.- Parameters:
tag- The tag to start, use null for latest tag.maxTagCount- The maximum count of tags to return. Use 0 for unlimited count.- Returns:
- The list of tags
- Since:
- 4.2.400
-
getAllowUidChanges
boolean getAllowUidChanges()Returnstrueif project users are allowed to change UIDs.Adminsmay always change UIDs. If the UID of an element may be changed is also determined by thechange permissionof the corresponding element.- Returns:
trueif users are allowed to changes the UID of an element if the corresponding permission is granted,falseif onlyadminsmay change UIDs.- Since:
- 4.2.400
-
setAllowUidChanges
void setAllowUidChanges(boolean value) Set allow UID changes project flag.Adminsare always allowed to change UIDs even if this flag is set tofalse. If a user can change the UID of an element is also determined by thechange permissionof the corresponding element.- Parameters:
value- Iftrue, project users which are notadminsmay change the UID of an element if the corresponding permission is granted.- Since:
- 4.2.400
-
getAllowLanguageHiding
boolean getAllowLanguageHiding()Returnstrueif project users are allowed to switch the display of language tabs in this project. If allowed, the project user can select the languages he wants to display in in the client gui.- Returns:
- returns true if hiding of languages is allowed in this project
- Since:
- 4.2.451
-
setAllowLanguageHiding
void setAllowLanguageHiding(boolean allowLanguageHiding) Set if project users are allowed to switch the display of language tabs in this project. If allowed, the project user can select the languages he wants to display in in the client gui.- Parameters:
allowLanguageHiding- set to true if the user is allowed to switch the display of languages in this project- Since:
- 4.2.451
-
getUseServerLockForDataset
boolean getUseServerLockForDataset()Iftruedatasetediting access is synced on server - i.e. not two clients can edit the same dataset concurrently. Iffalseediting is synchronization is optimistic.- Returns:
trueifdatasetediting access is synced on server, elsefalse.- Since:
- 5.0.5
- See Also:
-
setUseServerLockForDataset
void setUseServerLockForDataset(boolean value) Set howdatasetediting access is synced on server. Iftruedatasetediting access is synced on server - i.e. not two clients can edit the same dataset concurrently. Iffalseediting is synchronization is optimistic.- Parameters:
value-trueifdatasetediting access is synced on server, elsefalse.- Since:
- 5.0.5
- See Also:
-
getFirstCompleteRevision
Returns the first revision up to that the history is complete (i.e. has not been archived).- Returns:
- the first complete revision.
- Since:
- 5.0.111
-
getForbidPolyglotDataHierarchy
boolean getForbidPolyglotDataHierarchy()Indicates, whether it is forbidden to use language dependent forms on arbitrary levels in a data hierarchy.- Returns:
true, if polyglot data is forbidden.- Since:
- 5.2.510
-
setForbidPolyglotDataHierarchy
void setForbidPolyglotDataHierarchy(boolean forbid) Defines, whether to forbid to use language dependent forms on arbitrary levels in data hierarchy.- Parameters:
forbid-true, to forbid polyglot data.- Since:
- 5.2.510
-
useMappingBasedSchemaMerge
boolean useMappingBasedSchemaMerge()Indicates, whether the mapping based schema import is used during the import with ExternalSync/ContentTransport or not.- Returns:
true, if mapping based schema merge is used.- Since:
- 5.2.210906
-
setUseMappingBasedSchemaMerge
void setUseMappingBasedSchemaMerge(boolean useMappingBasedSchemaMerge) Defines, whether to use the mapping based schema import during the import with ExternalSync/ContentTransport.- Parameters:
useMappingBasedSchemaMerge-true, use the mapping based schema merge.- Since:
- 5.2.210906
-
useTransportPermissionChecks
boolean useTransportPermissionChecks()Indicates whether store permission checks are performed during the import with ContentTransport.- Returns:
true, if import permission checks are performed.- Since:
- 5.2.240804
-
setTransportPermissionChecks
void setTransportPermissionChecks(boolean checkPermissions) Defines whether store permission checks should be performed during the import with ContentTransport.- Parameters:
checkPermissions-true, if import permission checks should be performed.- Since:
- 5.2.240804
-
setWebeditPreviewUrl
Sets the preview url for webedit.- Parameters:
url- to alternative preview- Since:
- 5.2.1608
-
getWebeditPreviewUrl
Returns the custom preview url of webedit ornull, if default url is used.- Returns:
- the custom preview url or
null, if the default is used - Since:
- 5.2.1608
-
getUuid
Get the current project UUID.- Returns:
- The project UUID, never
null. - Since:
- 5.2.240203
-
ProjectReferencesAgent.getBrokenReferences(boolean).