|
Ofcas.Lk.Api.Client - Version 3.0
3.0.0.103
|
ProjectCenter is the representation of a LogiKal project-center. The children are of type Project. The children can be received from the InfoList (CoreObject<T>.Infos). Each ProjectCenter belongs to a fixed directory. To use another project directory, create a new project center using method GetProjectCenter. More...
Public Member Functions | |||
| Project | GetProject (ProjectInfo projectInfo) | ||
| Returns the corresponding project based on the given information data. 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.ProjectName 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) | ||
| Deletes a project based on an info object. More... | |||
| override OperationInfo | CanMoveFrom (ProjectInfo projectInfo) | ||
| Checks whether a project can be moved or not. More... | |||
| override ProjectInfo | MoveFrom (ProjectInfo projectInfo) | ||
| Moves a project into this directory based on an info object. If the project name already exists and it cannot be assigned twice, a new name is defined based on the old name. More... | |||
| override OperationInfo | CanCopyFrom (ProjectInfo projectInfo) | ||
| Checks whether a project can be copied or not. More... | |||
| override ProjectInfo | CopyFrom (ProjectInfo projectInfo) | ||
| Copies a project into this directory based on an info object. If the project name already exists and it cannot be assigned twice, a new name is defined based on the old name. 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... | |||
| void | DeleteLkProject (ProjectInfo projectInfo) | ||
| Deletes the corresponding logikal project based on the given information data. More... | |||
| ProjectInfo | MoveLkProjectFrom (ProjectInfo projectInfo, string newProjectName) | ||
| Moves a project to this project center based on the given project info and the new project name. More... | |||
| ProjectInfo | CopyProjectFrom (ProjectInfo projectInfo, string newProjectName) | ||
| Copies a project and its elevations. More... | |||
| Elevation | GetElevationFromLkId (Guid lkElevGuid) | ||
| |||
| ElevationInstance | GetElevationInstanceFromLkId (Guid lkElevInstanceGuid) | ||
| |||
| ProjectDirectoryInfo | CreateDirectory (string directoryName) | ||
| Creates a new directory in the current project center. More... | |||
| override Project | GetChild (ProjectInfo childInfo) | ||
Public Member Functions inherited from Ofcas.Lk.Api.Client.Core.CoreObjectFullyQualified< LoginScope, ProjectCenterInfo, Project, ProjectInfo > | |||
| 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 CoreInfoResponse | GetInfoResponse () |
| virtual Project | CreateNewInstance (Guid coreObjectId, ProjectInfo childInfo) |
Protected Member Functions inherited from Ofcas.Lk.Api.Client.Core.CoreObjectFullyQualified< LoginScope, ProjectCenterInfo, Project, ProjectInfo > | |
| CoreObjectFullyQualified (IApiService apiService, 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 | CoreInfo [get, protected set] |
ProjectCenter is the representation of a LogiKal project-center. The children are of type Project. The children can be received from the InfoList (CoreObject<T>.Infos). 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.CanCopyFrom | ( | ProjectInfo | projectInfo | ) |
Checks whether a project can be copied or not.
| projectInfo | The info of the project to be copied. |
| 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. |
| override OperationInfo Ofcas.Lk.Api.Client.Core.ProjectCenter.CanMoveFrom | ( | ProjectInfo | projectInfo | ) |
Checks whether a project can be moved or not.
| projectInfo | The info of the project to be moved. |
| override ProjectInfo Ofcas.Lk.Api.Client.Core.ProjectCenter.CopyFrom | ( | ProjectInfo | projectInfo | ) |
Copies a project into this directory based on an info object. If the project name already exists and it cannot be assigned twice, a new name is defined based on the old name.
| projectInfo | The info of the project to be copied. |
| ProjectInfo Ofcas.Lk.Api.Client.Core.ProjectCenter.CopyProjectFrom | ( | ProjectInfo | projectInfo, |
| string | newProjectName | ||
| ) |
Copies a project and its elevations.
| projectInfo | The info of the project to copy. |
| newProjectName | The new project name of the copy. If no name is defined the name from the given projectInfo will be used |
| Exception | contains api error message |
| override ProjectInfo Ofcas.Lk.Api.Client.Core.ProjectCenter.CreateChild | ( | ) |
Creates a new project with a default name. Call Project.Edit with WellKnownEditKeys.ProjectName 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 | ) |
Deletes a project based on an info object.
| projectInfo | Returns an info of the project to be deleted. |
| void Ofcas.Lk.Api.Client.Core.ProjectCenter.DeleteLkProject | ( | ProjectInfo | projectInfo | ) |
Deletes the corresponding logikal project based on the given information data.
| projectInfo | The project information |
| Project Ofcas.Lk.Api.Client.Core.ProjectCenter.GetProject | ( | ProjectInfo | projectInfo | ) |
Returns the corresponding project based on the given information data.
| projectInfo | The project information obtained through the CoreObject<T>.Infos function. |
| Exception | If getting elevation failed. |
| 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 | ( | ProjectInfo | projectInfo | ) |
Moves a project into this directory based on an info object. If the project name already exists and it cannot be assigned twice, a new name is defined based on the old name.
| projectInfo | The info of the project to be moved. |
| ProjectInfo Ofcas.Lk.Api.Client.Core.ProjectCenter.MoveLkProjectFrom | ( | ProjectInfo | projectInfo, |
| string | newProjectName | ||
| ) |
Moves a project to this project center based on the given project info and the new project name.
| projectInfo | The information of the project. |
| newProjectName | The name for the moved project. |
| ProjectDirectoryInfo Ofcas.Lk.Api.Client.Core.ProjectCenter.OwnDirectoryInfo => _ownDirectoryInfo |
Returns the directory info for the project-center