Class FileLockingController
Inheritance
System.Object
FileLockingController
Implements
Inherited Members
Namespace: DotNetNuke.Services.FileSystem.Internal
Assembly: DotNetNuke.dll
Syntax
public class FileLockingController : ServiceLocator<IFileLockingController, FileLockingController>, IFileLockingController
Methods
| Improve this Doc View SourceGetFactory()
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. |
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. |