C# Class ToSic.SexyContent.ContentGroup

Afficher le fichier Open project: 2sic/2sxc Class Usage Examples

Méthodes publiques

Méthode Description
AddContentAndPresentationEntity ( string type, int sortOrder, int contentId, int presentationId ) : void

If SortOrder is not specified, adds at the end

ContentGroup ( System.Guid previewTemplateId, int zoneId, int appId ) : System

Instanciate a "temporary" ContentGroup with the specified templateId and no Content items

ContentGroup ( IEntity contentGroupEntity, int zoneId, int appId ) : System
ListWithNulls ( string type ) : List
RemoveContentAndPresentationEntities ( string type, int sortOrder ) : void

Removes entities from a group. This will also remove the corresponding presentation entities.

ReorderAll ( int newSequence ) : bool
ReorderEntities ( int sortOrder, int destinationSortOrder ) : void
UpdateEntityIfChanged ( string type, int sortOrder, int entityId, bool updatePresentation, int presentationId ) : void
UpdateTemplate ( int templateId ) : void
this ( string type ) : List

Private Methods

Méthode Description
GetPresentationIdWithSameLengthAsContent ( ) : List
PrepareSavePackage ( string type, IEnumerable entityIds, int?[]>.Dictionary alreadyInitializedDictionary = null ) : int?[]>.Dictionary
ReCapitalizePartName ( string partName ) : string
SaveChangedLists ( int?[]>.Dictionary values ) : void

Method Details

AddContentAndPresentationEntity() public méthode

If SortOrder is not specified, adds at the end
public AddContentAndPresentationEntity ( string type, int sortOrder, int contentId, int presentationId ) : void
type string
sortOrder int
contentId int
presentationId int
Résultat void

ContentGroup() public méthode

Instanciate a "temporary" ContentGroup with the specified templateId and no Content items
public ContentGroup ( System.Guid previewTemplateId, int zoneId, int appId ) : System
previewTemplateId System.Guid
zoneId int
appId int
Résultat System

ContentGroup() public méthode

public ContentGroup ( IEntity contentGroupEntity, int zoneId, int appId ) : System
contentGroupEntity IEntity
zoneId int
appId int
Résultat System

ListWithNulls() public méthode

public ListWithNulls ( string type ) : List
type string
Résultat List

RemoveContentAndPresentationEntities() public méthode

Removes entities from a group. This will also remove the corresponding presentation entities.
public RemoveContentAndPresentationEntities ( string type, int sortOrder ) : void
type string Should be 'Content' or "ListContent"
sortOrder int
Résultat void

ReorderAll() public méthode

public ReorderAll ( int newSequence ) : bool
newSequence int
Résultat bool

ReorderEntities() public méthode

public ReorderEntities ( int sortOrder, int destinationSortOrder ) : void
sortOrder int
destinationSortOrder int
Résultat void

UpdateEntityIfChanged() public méthode

public UpdateEntityIfChanged ( string type, int sortOrder, int entityId, bool updatePresentation, int presentationId ) : void
type string
sortOrder int
entityId int
updatePresentation bool
presentationId int
Résultat void

UpdateTemplate() public méthode

public UpdateTemplate ( int templateId ) : void
templateId int
Résultat void

this() public méthode

public this ( string type ) : List
type string
Résultat List