Class CometProject
java.lang.Object
com.priint.pubserver.tagging.TaggingObject
com.priint.pubserver.comet.entity.CometEntity
com.priint.pubserver.comet.entity.CometProject
- All Implemented Interfaces:
CometContextRuleConfiguration,Serializable
@CometTypeConstraints(calculateIds=false,
referenceBinding=NONE)
public class CometProject
extends CometEntity
implements CometContextRuleConfiguration
The type Comet project. Internal use only.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.priint.pubserver.comet.entity.CometEntity
CometEntity.CategoryNested classes/interfaces inherited from class com.priint.pubserver.tagging.TaggingObject
TaggingObject.LinkedSetWrapper<T> -
Field Summary
Fields inherited from class com.priint.pubserver.comet.entity.CometEntity
id, TAG_DOMAIN_QUALIFIER, TAG_GROUP_QUALIFIER, TAG_TYPE_QUALIFIERFields inherited from class com.priint.pubserver.tagging.TaggingObject
tagsSet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCan use project default boolean.voidcreateNewRevision(String path) Gets client.Gets context rule assortment.Gets context rule country.Gets context rule document.Gets context rule language.Gets context rule market name.Gets context rule publication.Gets context rule target group.Gets context rule well.Gets description.Gets entity model.List<com.priint.pubserver.comet.entity.CometProject.FileRevisionTracking>Gets identifier.getLabel()Gets label.Gets publication provider plugin.Get reference (i.e.Gets the repository filename for this particular itemGet the relative repository path for this configuration type.getRevisionOfFile(String path) Gets show content.booleanGets use project default.protected voidinsertOrUpdateRevisionTracking(String path, String revision) booleanrevisionMatches(String path, String repositoryRevision) Checks, whether a revision of a repository file matches the expected tracked revision of the filevoidSets client.voidsetContextRuleAssortment(PluginMethod contextRuleAssortment) Sets context rule assortment.voidsetContextRuleCountry(PluginMethod contextRuleCountry) Sets context rule country.voidsetContextRuleDocument(PluginMethod contextRuleDocument) Sets context rule document.voidsetContextRuleLanguage(PluginMethod contextRuleLanguage) Sets context rule language.voidsetContextRuleMarketName(PluginMethod contextRuleMarketName) Sets context rule market name.voidsetContextRulePublication(PluginMethod contextRulePublication) Sets context rule publication.voidsetContextRuleTargetGroup(PluginMethod contextRuleTargetGroup) Sets context rule target group.voidsetContextRuleWell(PluginMethod contextRuleWell) Sets context rule well.voidsetDescription(String description) Sets description.voidsetEntityModel(String entityModel) Sets entity model.voidsetFileRevisionTrackings(List<com.priint.pubserver.comet.entity.CometProject.FileRevisionTracking> fileRevisionTrackings) voidsetIdentifier(String identifier) Sets identifier.voidSets label.voidsetPublicationProviderPlugin(String publicationProviderPlugin) Sets publication provider plugin.voidsetShowContent(Boolean showContent) Sets show content.voidsetUseProjectDefault(boolean useProjectDefault) Sets use project default.voidupdateToNextRevision(String path, String currentRevision) Methods inherited from class com.priint.pubserver.comet.entity.CometEntity
checkMinimalConstraints, entityEquals, equals, getEntityDescription, getEntityLabel, getId, hashCode, initDefaultValues, initDefaultValues, setIdMethods inherited from class com.priint.pubserver.tagging.TaggingObject
addToTags, getTags, getTagValue, inTags, isA, removeFromTags, searchListByTags, setTags, setTags
-
Constructor Details
-
CometProject
public CometProject()Instantiates a new Comet project.
-
-
Method Details
-
getClient
Gets client.- Returns:
- the client
-
getDescription
Gets description.- Returns:
- the description
-
getEntityModel
Gets entity model.- Returns:
- the entity model
-
getIdentifier
Gets identifier.- Returns:
- the identifier
-
getLabel
Gets label.- Returns:
- the label
-
getReferenceConstraints
Description copied from class:CometEntityGet reference (i.e. PluginDependency) constraints for this type, including constraints inherited from super classes
See the
CometTypeConstraintsannotation for more information- Overrides:
getReferenceConstraintsin classCometEntity- Returns:
- list of mandatory dependencies for this type
-
getRepositoryFilename
Description copied from class:CometEntityGets the repository filename for this particular item
This method MUST be overridden by classes extending CometEntity
- Overrides:
getRepositoryFilenamein classCometEntity- Returns:
- the repository filename of this particular item
- Throws:
CometException- the comet exception
-
getRepositoryPath
Description copied from class:CometEntityGet the relative repository path for this configuration type.
This method MUST be overridden by classes extending CometEntity.
- Overrides:
getRepositoryPathin classCometEntity- Returns:
- relative repository path
- Throws:
CometException- the comet exception
-
getShowContent
Gets show content.- Returns:
- the show content
-
setClient
Sets client.- Parameters:
client- the client
-
setDescription
Sets description.- Parameters:
description- the description
-
setEntityModel
Sets entity model.- Parameters:
entityModel- the entity model
-
setIdentifier
Sets identifier.- Parameters:
identifier- the identifier
-
setLabel
Sets label.- Parameters:
label- the label
-
setShowContent
Sets show content.- Parameters:
showContent- the show content
-
getPublicationProviderPlugin
Gets publication provider plugin.- Returns:
- the publication provider plugin
-
setPublicationProviderPlugin
Sets publication provider plugin.- Parameters:
publicationProviderPlugin- the publication provider plugin
-
getContextRuleAssortment
Description copied from interface:CometContextRuleConfigurationGets context rule assortment.- Specified by:
getContextRuleAssortmentin interfaceCometContextRuleConfiguration- Returns:
- the context rule assortment
-
getContextRuleCountry
Description copied from interface:CometContextRuleConfigurationGets context rule country.- Specified by:
getContextRuleCountryin interfaceCometContextRuleConfiguration- Returns:
- the context rule country
-
getContextRuleDocument
Description copied from interface:CometContextRuleConfigurationGets context rule document.- Specified by:
getContextRuleDocumentin interfaceCometContextRuleConfiguration- Returns:
- the context rule document
-
getContextRuleLanguage
Description copied from interface:CometContextRuleConfigurationGets context rule language.- Specified by:
getContextRuleLanguagein interfaceCometContextRuleConfiguration- Returns:
- the context rule language
-
getContextRulePublication
Description copied from interface:CometContextRuleConfigurationGets context rule publication.- Specified by:
getContextRulePublicationin interfaceCometContextRuleConfiguration- Returns:
- the context rule publication
-
getContextRuleWell
Description copied from interface:CometContextRuleConfigurationGets context rule well.- Specified by:
getContextRuleWellin interfaceCometContextRuleConfiguration- Returns:
- the context rule well
-
getContextRuleTargetGroup
Description copied from interface:CometContextRuleConfigurationGets context rule target group.- Specified by:
getContextRuleTargetGroupin interfaceCometContextRuleConfiguration- Returns:
- the context rule target group
-
getContextRuleMarketName
Description copied from interface:CometContextRuleConfigurationGets context rule market name.- Specified by:
getContextRuleMarketNamein interfaceCometContextRuleConfiguration- Returns:
- the context rule market name
-
setContextRuleAssortment
Description copied from interface:CometContextRuleConfigurationSets context rule assortment.- Specified by:
setContextRuleAssortmentin interfaceCometContextRuleConfiguration- Parameters:
contextRuleAssortment- the context rule assortment
-
setContextRuleCountry
Description copied from interface:CometContextRuleConfigurationSets context rule country.- Specified by:
setContextRuleCountryin interfaceCometContextRuleConfiguration- Parameters:
contextRuleCountry- the context rule country
-
setContextRuleDocument
Description copied from interface:CometContextRuleConfigurationSets context rule document.- Specified by:
setContextRuleDocumentin interfaceCometContextRuleConfiguration- Parameters:
contextRuleDocument- the context rule document
-
setContextRuleLanguage
Description copied from interface:CometContextRuleConfigurationSets context rule language.- Specified by:
setContextRuleLanguagein interfaceCometContextRuleConfiguration- Parameters:
contextRuleLanguage- the context rule language
-
setContextRulePublication
Description copied from interface:CometContextRuleConfigurationSets context rule publication.- Specified by:
setContextRulePublicationin interfaceCometContextRuleConfiguration- Parameters:
contextRulePublication- the context rule publication
-
setContextRuleWell
Description copied from interface:CometContextRuleConfigurationSets context rule well.- Specified by:
setContextRuleWellin interfaceCometContextRuleConfiguration- Parameters:
contextRuleWell- the context rule well
-
setContextRuleTargetGroup
Description copied from interface:CometContextRuleConfigurationSets context rule target group.- Specified by:
setContextRuleTargetGroupin interfaceCometContextRuleConfiguration- Parameters:
contextRuleTargetGroup- the context rule target group
-
setContextRuleMarketName
Description copied from interface:CometContextRuleConfigurationSets context rule market name.- Specified by:
setContextRuleMarketNamein interfaceCometContextRuleConfiguration- Parameters:
contextRuleMarketName- the context rule market name
-
canUseProjectDefault
public boolean canUseProjectDefault()Description copied from interface:CometContextRuleConfigurationCan use project default boolean.- Specified by:
canUseProjectDefaultin interfaceCometContextRuleConfiguration- Returns:
- the boolean
-
getUseProjectDefault
public boolean getUseProjectDefault()Description copied from interface:CometContextRuleConfigurationGets use project default.- Specified by:
getUseProjectDefaultin interfaceCometContextRuleConfiguration- Returns:
- the use project default
-
setUseProjectDefault
public void setUseProjectDefault(boolean useProjectDefault) Description copied from interface:CometContextRuleConfigurationSets use project default.- Specified by:
setUseProjectDefaultin interfaceCometContextRuleConfiguration- Parameters:
useProjectDefault- the use project default
-
getFileRevisionTrackings
public List<com.priint.pubserver.comet.entity.CometProject.FileRevisionTracking> getFileRevisionTrackings() -
setFileRevisionTrackings
public void setFileRevisionTrackings(List<com.priint.pubserver.comet.entity.CometProject.FileRevisionTracking> fileRevisionTrackings) -
getRevisionOfFile
-
insertOrUpdateRevisionTracking
-
createNewRevision
-
updateToNextRevision
-
revisionMatches
Checks, whether a revision of a repository file matches the expected tracked revision of the file
A revision matches, if
- the tracked revision is null. This means: we just start tracking revisions for this file. OR
- the repository revision is null. This means: no repository file exists yet OR
- the repository revision is equal to the tracked revision.
- Parameters:
path- path of the repository filerepositoryRevision- the revision of the file in the repository or null, if the file does not exiut yet- Returns:
- true, if revisions match (according to the rules stated above), false otherwise
-