Class FolderIDGenerator
Generates folder id for content.
Inheritance
System.Object
FolderIDGenerator
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Construction
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public class FolderIDGenerator : IFolderIDGenerator
Constructors
FolderIDGenerator(IContentRepository, IContentProviderManager, ServiceAccessor<PageFolderDB>)
Initializes a new instance of the FolderIDGenerator class.
Declaration
public FolderIDGenerator(IContentRepository contentRepository, IContentProviderManager contentProviderManager, ServiceAccessor<PageFolderDB> dataAccess)
Parameters
| Type | Name | Description |
|---|---|---|
| IContentRepository | contentRepository | The IContentRepository service. |
| IContentProviderManager | contentProviderManager | The content provider manager. |
| ServiceAccessor<PageFolderDB> | dataAccess | The data access. |
Properties
SequenceGenerator
Gets or sets the sequence generator.
Declaration
public UniqueSequence SequenceGenerator { get; set; }
Property Value
| Type | Description |
|---|---|
| UniqueSequence | The sequence generator. |
Remarks
This is mainly exposed to be replaced during unit tests.
Methods
GenerateFolderID(ContentReference, ContentReference)
Generates a folder id for a content.
Declaration
public long GenerateFolderID(ContentReference contentLink, ContentReference parentLink)
Parameters
| Type | Name | Description |
|---|---|---|
| ContentReference | contentLink | The page link. |
| ContentReference | parentLink | The parent link. |
Returns
| Type | Description |
|---|---|
| System.Int64 |
GetNextAvailableFolderID()
Gets the next available unique folder id.
Declaration
public long GetNextAvailableFolderID()
Returns
| Type | Description |
|---|---|
| System.Int64 |