Show / Hide Table of Contents

Class AssetManager

Inheritance
object
ComponentBase<IAssetManager, AssetManager>
AssetManager
Implements
IAssetManager
Inherited Members
ComponentBase<IAssetManager, AssetManager>.RegisterInstance(IAssetManager)
ComponentBase<IAssetManager, AssetManager>.Instance
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DotNetNuke.Services.Assets
Assembly: DotNetNuke.dll
Syntax
public class AssetManager : ComponentBase<IAssetManager, AssetManager>, IAssetManager

Constructors

AssetManager()

Declaration
public AssetManager()

Methods

ApplyOrder<T>(IQueryable<T>, string, bool)

Declaration
public static IOrderedQueryable<T> ApplyOrder<T>(IQueryable<T> source, string propertyName, bool asc)
Parameters
Type Name Description
IQueryable<T> source
string propertyName
bool asc
Returns
Type Description
IOrderedQueryable<T>
Type Parameters
Name Description
T

CreateFolder(string, int, int, string)

Declaration
public IFolderInfo CreateFolder(string folderName, int folderParentId, int folderMappingId, string mappedPath)
Parameters
Type Name Description
string folderName
int folderParentId
int folderMappingId
string mappedPath
Returns
Type Description
IFolderInfo

DeleteFile(int)

Declaration
public bool DeleteFile(int fileId)
Parameters
Type Name Description
int fileId
Returns
Type Description
bool

DeleteFolder(int, bool, ICollection<IFolderInfo>)

Declaration
public bool DeleteFolder(int folderId, bool onlyUnlink, ICollection<IFolderInfo> nonDeletedSubfolders)
Parameters
Type Name Description
int folderId
bool onlyUnlink
ICollection<IFolderInfo> nonDeletedSubfolders
Returns
Type Description
bool

GetFolderContent(int, int, int, string, SubfolderFilter)

Declaration
public ContentPage GetFolderContent(int folderId, int startIndex, int numItems, string sortExpression = null, SubfolderFilter subfolderFilter = SubfolderFilter.IncludeSubfoldersFolderStructure)
Parameters
Type Name Description
int folderId
int startIndex
int numItems
string sortExpression
SubfolderFilter subfolderFilter
Returns
Type Description
ContentPage

GetFolders(IFolderInfo, string, bool)

Declaration
public IEnumerable<IFolderInfo> GetFolders(IFolderInfo parentFolder, string orderingField, bool asc)
Parameters
Type Name Description
IFolderInfo parentFolder
string orderingField
bool asc
Returns
Type Description
IEnumerable<IFolderInfo>

HasPermission(IFolderInfo, string)

Declaration
public static bool HasPermission(IFolderInfo folder, string permissionKey)
Parameters
Type Name Description
IFolderInfo folder
string permissionKey
Returns
Type Description
bool

RenameFile(int, string)

Declaration
public IFileInfo RenameFile(int fileId, string newFileName)
Parameters
Type Name Description
int fileId
string newFileName
Returns
Type Description
IFileInfo

RenameFolder(int, string)

Declaration
public IFolderInfo RenameFolder(int folderId, string newFolderName)
Parameters
Type Name Description
int folderId
string newFolderName
Returns
Type Description
IFolderInfo

SearchFolderContent(int, string, int, int, string, SubfolderFilter)

Declaration
public ContentPage SearchFolderContent(int folderId, string pattern, int startIndex, int numItems, string sortExpression = null, SubfolderFilter subfolderFilter = SubfolderFilter.IncludeSubfoldersFolderStructure)
Parameters
Type Name Description
int folderId
string pattern
int startIndex
int numItems
string sortExpression
SubfolderFilter subfolderFilter
Returns
Type Description
ContentPage

Implements

IAssetManager

Extension Methods

JsonExtensionsWeb.ToJson(object)
Back to top by the community, for the community... #DNNCMS