|
Ofcas.Lk.Api.Client - Version 3.0
3.0.0.113
|
ProjectCenter is the representation of a LogiKal project-center. The children are of type Project. The children can be received from the InfoList (CoreObjectWithChildren<TChild,TChildInfo>.ChildrenInfos). Each ProjectCenter belongs to a fixed directory. To use another project directory, create a new project center using method GetProjectCenter. More...
Public Member Functions | |||
| override Project | GetChild (ProjectInfo projectInfo) | ||
| Gets a Project based on a ProjectInfo. More... | |||
| Project | GetProject (ProjectInfo projectInfo) | ||
| This method is deprecated. Please use GetChild(ProjectInfo) instead. More... | |||
| ProjectCenter | GetProjectCenter (ProjectDirectoryInfo projectDirectoryInfo) | ||
| Creates a new ProjectCenter for the given directory. Each ProjectCenter belongs to a fixed directory. More... | |||
| override OperationInfo | CanCreateChild () | ||
| Checks whether a project can be created or not. More... | |||
| override ProjectInfo | CreateChild () | ||
| Creates a new project with a default name. Call Project.Edit with WellKnownEditKeys.Project.Name to change the name after the creation. More... | |||
| override OperationInfo | CanDeleteChild (ProjectInfo projectInfo) | ||
| Checks whether a project can be deleted or not. More... | |||
| override void | DeleteChild (ProjectInfo projectInfo, bool forceDelete=false) | ||
| Deletes a project based on an info object. More... | |||
| override OperationInfo | CanMoveFrom (ICoreInfo coreInfo, bool deepCheck=true) | ||
| override ProjectInfo | MoveFrom (ICoreInfo coreInfo) | ||
| Moves an object into this directory based on an info object. More... | |||
| override OperationInfo | CanCopyFrom (ICoreInfo coreInfo, bool deepCheck=true) | ||
| override ProjectInfo | CopyFrom (ICoreInfo coreInfo) | ||
| Copies an object into this directory based on an info object. More... | |||
| ProjectInfo | CreateLkProject (string projectName) | ||
| Creates a new Project in the LogiKal project structure. The project will be created in the current active directory. More... | |||
| Elevation | GetElevationFromLkId (Guid lkElevGuid) | ||
| |||
| ElevationInstance | GetElevationInstanceFromLkId (Guid lkElevInstanceGuid) | ||
| |||
| ProjectDirectoryInfo | CreateDirectory (string directoryName) | ||
| Creates a new directory in the current project center. More... | |||
| OperationInfo | CanDeleteDirectory (string directoryName) | ||
| Checks whether a directory can be deleted or not. More... | |||
| void | DeleteDirectory (string directoryName) | ||
| Deletes the directory from the current project center. More... | |||
| OperationInfo | CanRename (string directoryName) | ||
| Checks if the name of this project directory can be changed to the stated name. Renaming the root directory or the recyclebin is not possible. More... | |||
| ProjectDirectoryInfo | Rename (string directoryName) | ||
| Changes the name of this project directory to the stated name. Renaming the root directory or the recyclebin is not possible. More... | |||
| Stream | ExportChild (ProjectInfo projectInfo, IEnumerable< ElevationInfo > elevationInfos, Dictionary< string, object > parameters) | ||
| Exports a Project based on its ProjectInfo, list of ElevationInfo and parameters. More... | |||
| override ProjectInfo | RefreshChild (ProjectInfo childInfo) | ||
Public Member Functions inherited from Ofcas.Lk.Api.Client.Core.CoreObjectFullyQualified< LoginScope, ProjectCenterInfo, Project, ProjectInfo > | |||
| TOwnInfo | Refresh () | ||
| virtual OperationInfo | CanEdit (string key, object value) | ||
| virtual TOwnInfo | Edit (string key, object value) | ||
Public Attributes | |
| ProjectDirectoryInfo | OwnDirectoryInfo => _ownDirectoryInfo |
| Returns the directory info for the project-center More... | |
Protected Member Functions | |
| override IEnumerable< ProjectInfo > | GetChildrenInfos () |
| Stream | ExportChild (ProjectInfo projectInfo, IEnumerable< ElevationInfo > elevationInfos, Dictionary< string, object > parameters, bool verbose) |
| virtual Project | CreateNewInstance (Guid coreObjectId, ProjectInfo childInfo) |
Protected Member Functions inherited from Ofcas.Lk.Api.Client.Core.CoreObjectFullyQualified< LoginScope, ProjectCenterInfo, Project, ProjectInfo > | |
| CoreObjectFullyQualified (IServiceFactory< IApiService > serviceFactory, Guid coreObjectId, TParent parent, TOwnInfo ownInfo) | |
| Creates a new instance of CoreObjectFullyQualified<TParent,TOwnInfo,TChild,TChildInfo> with the given parameters. More... | |
Properties | |
| IList< ProjectDirectoryInfo > | ProjectDirectoryInfos [get] |
Properties inherited from Ofcas.Lk.Api.Client.Core.CoreObjectFullyQualified< LoginScope, ProjectCenterInfo, Project, ProjectInfo > | |
| TParent | Parent [get] |
| TOwnInfo | Info [get] |
ProjectCenter is the representation of a LogiKal project-center. The children are of type Project. The children can be received from the InfoList (CoreObjectWithChildren<TChild,TChildInfo>.ChildrenInfos). Each ProjectCenter belongs to a fixed directory. To use another project directory, create a new project center using method GetProjectCenter.
| override OperationInfo Ofcas.Lk.Api.Client.Core.ProjectCenter.CanCreateChild | ( | ) |
Checks whether a project can be created or not.
| override OperationInfo Ofcas.Lk.Api.Client.Core.ProjectCenter.CanDeleteChild | ( | ProjectInfo | projectInfo | ) |
Checks whether a project can be deleted or not.
| projectInfo | The info of the project to be deleted. |
| OperationInfo Ofcas.Lk.Api.Client.Core.ProjectCenter.CanDeleteDirectory | ( | string | directoryName | ) |
Checks whether a directory can be deleted or not.
| directoryName | The name of the directory to be deleted. |
| OperationInfo Ofcas.Lk.Api.Client.Core.ProjectCenter.CanRename | ( | string | directoryName | ) |
Checks if the name of this project directory can be changed to the stated name. Renaming the root directory or the recyclebin is not possible.
| directoryName | The new name of this project directory. Cannot contain any invalid chars defined by Path.GetInvalidFileNameChars. |
| override ProjectInfo Ofcas.Lk.Api.Client.Core.ProjectCenter.CopyFrom | ( | ICoreInfo | coreInfo | ) |
Copies an object into this directory based on an info object.
| coreInfo | The info of the object to be copied. |
| override ProjectInfo Ofcas.Lk.Api.Client.Core.ProjectCenter.CreateChild | ( | ) |
Creates a new project with a default name. Call Project.Edit with WellKnownEditKeys.Project.Name to change the name after the creation.
| ProjectDirectoryInfo Ofcas.Lk.Api.Client.Core.ProjectCenter.CreateDirectory | ( | string | directoryName | ) |
Creates a new directory in the current project center.
| directoryName | The name of the directory to be created. |
| ArgumentNullException | Occurs if the directory name is null or empty. |
| InvalidOperationException | Occurs if the directory could not be found after refresh. |
| NotSupportedException | Occurs if the directory could not be found after refresh. |
| ProjectInfo Ofcas.Lk.Api.Client.Core.ProjectCenter.CreateLkProject | ( | string | projectName | ) |
Creates a new Project in the LogiKal project structure. The project will be created in the current active directory.
| projectName | The name of the new project |
| Exception | contains api error message |
| override void Ofcas.Lk.Api.Client.Core.ProjectCenter.DeleteChild | ( | ProjectInfo | projectInfo, |
| bool | forceDelete = false |
||
| ) |
Deletes a project based on an info object.
| projectInfo | Returns an info of the project to be deleted. |
| forceDelete | Indicates whether the child should be completely deleted. |
| void Ofcas.Lk.Api.Client.Core.ProjectCenter.DeleteDirectory | ( | string | directoryName | ) |
Deletes the directory from the current project center.
| directoryName | The name of the directory to be deleted. |
| ArgumentNullException | Occurs if the directory name is null or empty. |
| Stream Ofcas.Lk.Api.Client.Core.ProjectCenter.ExportChild | ( | ProjectInfo | projectInfo, |
| IEnumerable< ElevationInfo > | elevationInfos, | ||
| Dictionary< string, object > | parameters | ||
| ) |
Exports a Project based on its ProjectInfo, list of ElevationInfo and parameters.
| projectInfo | The info of the project to be exported. |
| elevationInfos | The elevations to be exported. |
| parameters | The parameters for the export. |
| override Project Ofcas.Lk.Api.Client.Core.ProjectCenter.GetChild | ( | ProjectInfo | projectInfo | ) |
Gets a Project based on a ProjectInfo.
| projectInfo | The ProjectInfo of the Project to be returned. |
| Project Ofcas.Lk.Api.Client.Core.ProjectCenter.GetProject | ( | ProjectInfo | projectInfo | ) |
This method is deprecated. Please use GetChild(ProjectInfo) instead.
| ProjectCenter Ofcas.Lk.Api.Client.Core.ProjectCenter.GetProjectCenter | ( | ProjectDirectoryInfo | projectDirectoryInfo | ) |
Creates a new ProjectCenter for the given directory. Each ProjectCenter belongs to a fixed directory.
| projectDirectoryInfo | The project directory to use |
| Exception | if creating project-center failed (for example invalid directory) |
| override ProjectInfo Ofcas.Lk.Api.Client.Core.ProjectCenter.MoveFrom | ( | ICoreInfo | coreInfo | ) |
Moves an object into this directory based on an info object.
| coreInfo | The info of the object to be moved. |
| ProjectDirectoryInfo Ofcas.Lk.Api.Client.Core.ProjectCenter.Rename | ( | string | directoryName | ) |
Changes the name of this project directory to the stated name. Renaming the root directory or the recyclebin is not possible.
| directoryName | The new name of this project directory. Cannot contain any invalid chars defined by Path.GetInvalidFileNameChars. |
| ProjectDirectoryInfo Ofcas.Lk.Api.Client.Core.ProjectCenter.OwnDirectoryInfo => _ownDirectoryInfo |
Returns the directory info for the project-center