Click or drag to resize
FileSystemUpsertObjectsByTypeJob Class
Inserts all objects of given object type present in repository to the database. If object already exists, it is updated.
Inheritance Hierarchy

Namespace: CMS.ContinuousIntegration.Internal
Assembly: CMS.ContinuousIntegration (in CMS.ContinuousIntegration.dll) Version: 10.0.0
Syntax
C#
public class FileSystemUpsertObjectsByTypeJob : AbstractFileSystemTypeWideJob

The FileSystemUpsertObjectsByTypeJob type exposes the following members.

Constructors
  NameDescription
Public methodFileSystemUpsertObjectsByTypeJob
Creates a new instance of FileSystemUpsertObjectsByTypeJob that restores all objects of given object type to the database.
Top
Properties
  NameDescription
Protected propertyRepositoryConfiguration
Gets the current instance of repository configuration
(Inherited from AbstractFileSystemJob.)
Protected propertyRepositoryPathHelper
Object for working with file paths in file system repository.
(Inherited from AbstractFileSystemJob.)
Protected propertyTranslationHelper
Provides object translation. Used in serialization to optimize database calls.
(Inherited from AbstractFileSystemJob.)
Protected propertyUseFileMetadata
Indicates whether objects' file meta-data are used or not (see FileMetadataInfo).
(Inherited from AbstractFileSystemJob.)
Top
Methods
  NameDescription
Protected methodCancellableForEachT(CancellationToken, IEnumerableT, ActionT)
Enumerates through collection checking cancellationToken before each iteration and performing action on each item in the collection.
(Inherited from AbstractFileSystemJob.)
Protected methodCancellableForEachT(CancellationToken, IEnumerableT, ActionT, Int32)
Enumerates through collection checking cancellationToken before each iteration and performing action on each item in the collection.
(Inherited from AbstractFileSystemJob.)
Protected methodCancellablyProcessQueueT
Process queue of objects using given function for processing every object in the queue. If the function returns null, object is considered as successfully processed. If function returns object, then the returned object is enqueued. Queue is iterated again while at least one object was successfully processed.
(Inherited from AbstractFileSystemTypeWideJob.)
Protected methodDeserializeObjectFromFiles
Deserializes object(s) from files' content based on structuredLocation.

Files' content is eventually composed from separated fields stored in separated files.

If file's content belongs to a bindings object type, all binding objects within the file (i.e. objects with same parent) are returned.

Protected methodGetDeserializedMainObjects
Returns deserialized object(s) in its final form that might be composed of multiple partial sub-objects. All object part's file locations are provided in fileLocations.
Protected methodGetMainObjects
Gets main objects directly or composes multiple partial sub-objects into one or more main objects.
Protected methodGetNewJobWithSharedResourcesTJob
Gets new job of TJob using factoryJobGetter and initializes it with all properties used in InitializeWith``1(UMP, RepositoryPathHelper, ContinuousIntegrationTranslationHelper, FileSystemBindingsProcessor, IFileSystemWriter, ICachedFileSystemReader, SeparatedFieldProcessor, NullableBoolean, NullableBoolean) of the job calling this method.
(Inherited from AbstractFileSystemJob.)
Protected methodGetNewJobWithSharedResourcesAndHandlersTJob
Gets new job of TJob using factoryJobGetter and initializes it with all properties used in InitializeWith``1(UMP, RepositoryPathHelper, ContinuousIntegrationTranslationHelper, FileSystemBindingsProcessor, IFileSystemWriter, ICachedFileSystemReader, SeparatedFieldProcessor, NullableBoolean, NullableBoolean) and registers all handlers using SetLogProgressHandler``1(UMP, EventHandlerLogProgressEventArgs) of the job calling this method.
(Inherited from AbstractFileSystemProgressLoggingJob.)
Protected methodGetObjectInfoMessageFormat
Gets format of message informing about object's action.
(Inherited from AbstractFileSystemTypeWideJob.)
Protected methodCheckContinuousIntegrationLicense
Check license requirement for Continuous Integration and throws LicenseException if they are not met.
(Inherited from AbstractFileSystemJob.)
Protected methodInitializeCancellationToken
If provided cancellationToken is not null, the token is used; otherwise, new CancellationToken is created so as the derived class does not need to -checked each token's use.
(Inherited from AbstractFileSystemJob.)
Protected methodRaiseLogProgress(LogItem)
Logs message to progress log.
(Inherited from AbstractFileSystemProgressLoggingJob.)
Protected methodRaiseLogProgress(String, LogItemTypeEnum, LogItemActionTypeEnum)
Logs message to progress log.
(Inherited from AbstractFileSystemProgressLoggingJob.)
Protected methodRegisterTranslationRecord
Registers a new translation record into TranslationHelper.
(Inherited from AbstractFileSystemJob.)
Protected methodReplaceTranslationRecord
Registers record for given info into TranslationHelper.
Protected methodRunInternal
Inserts all objects of given object type that are present in the file system repository to the database. If object already exists, it is updated.
(Overrides AbstractFileSystemTypeWideJobRunInternal(String, ISetRepositoryLocationsCollection, CancellationToken).)
Protected methodSetChangedObject
Sets changed object to the database.
Top
See Also