• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Interface IFileLockingController

Namespace: DotNetNuke.Services.FileSystem.Internal
Assembly: DotNetNuke.dll
Syntax
public interface IFileLockingController

Methods

| Improve this Doc View Source

IsFileLocked(IFileInfo, out String)

Checks if a file is locked or not.

Declaration
bool IsFileLocked(IFileInfo file, out string lockReasonKey)
Parameters
Type Name Description
IFileInfo file

The file to be checked.

System.String lockReasonKey

The friendly reason why the file is locked.

Returns
Type Description
System.Boolean

True if the file is locked, false in otherwise.

| Improve this Doc View Source

IsFileOutOfPublishPeriod(IFileInfo, Int32, Int32)

Checks if the file is out of Publish Period.

Declaration
bool IsFileOutOfPublishPeriod(IFileInfo file, int portalId, int userId)
Parameters
Type Name Description
IFileInfo file

the file to be checked.

System.Int32 portalId

The Portal Id where the file is contained.

System.Int32 userId

The user Id who is accessing to the file.

Returns
Type Description
System.Boolean

True if the file is out of publish period, false in otherwise. In anycase, True for admin or host users.

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS