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

Class FileLockingController

Inheritance
System.Object
ServiceLocator<IFileLockingController, FileLockingController>
FileLockingController
Implements
IFileLockingController
Inherited Members
ServiceLocator<IFileLockingController, FileLockingController>.Instance
ServiceLocator<IFileLockingController, FileLockingController>.Factory
ServiceLocator<IFileLockingController, FileLockingController>.SetTestableInstance(IFileLockingController)
ServiceLocator<IFileLockingController, FileLockingController>.ClearInstance()
ServiceLocator<IFileLockingController, FileLockingController>.GetFactory()
Namespace: DotNetNuke.Services.FileSystem.Internal
Assembly: DotNetNuke.dll
Syntax
public class FileLockingController : ServiceLocator<IFileLockingController, FileLockingController>, IFileLockingController

Methods

| Improve this Doc View Source

GetFactory()

Gets the service locator factory.

Declaration
protected override Func<IFileLockingController> GetFactory()
Returns
Type Description
Func<IFileLockingController>

A factory function.

Overrides
DotNetNuke.Framework.ServiceLocator<DotNetNuke.Services.FileSystem.Internal.IFileLockingController, DotNetNuke.Services.FileSystem.Internal.FileLockingController>.GetFactory()
| Improve this Doc View Source

IsFileLocked(IFileInfo, out String)

Checks if a file is locked or not.

Declaration
public 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
public 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.

Implements

IFileLockingController

Extension Methods

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