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...
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.
◆ CanCreateChild()
| override OperationInfo Ofcas.Lk.Api.Client.Core.ProjectCenter.CanCreateChild |
( |
| ) |
|
Checks whether a project can be created or not.
- Returns
◆ CanDeleteChild()
Checks whether a project can be deleted or not.
- Parameters
-
| projectInfo | The info of the project to be deleted. |
- Returns
◆ CanDeleteDirectory()
| OperationInfo Ofcas.Lk.Api.Client.Core.ProjectCenter.CanDeleteDirectory |
( |
string |
directoryName | ) |
|
Checks whether a directory can be deleted or not.
- Parameters
-
| directoryName | The name of the directory to be deleted. |
- Returns
◆ CanRename()
| 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.
- Parameters
-
| directoryName | The new name of this project directory. Cannot contain any invalid chars defined by Path.GetInvalidFileNameChars. |
- Returns
- Returns an OperationStatus containing the information if this operation can be called.
◆ CopyFrom()
Copies an object into this directory based on an info object.
- Parameters
-
| coreInfo | The info of the object to be copied. |
- Returns
- Returns an info object of the copied / created project.
◆ CreateChild()
| 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.
- Returns
- Returns an info object of the created project.
◆ CreateDirectory()
Creates a new directory in the current project center.
- Parameters
-
| directoryName | The name of the directory to be created. |
- Returns
- Returns the ProjectDirectoryInfo for the directory.
- Exceptions
-
| 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. |
◆ CreateLkProject()
| 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.
- Parameters
-
| projectName | The name of the new project |
- Returns
- The ProjectInfo to the created project
- Exceptions
-
| Exception | contains api error message |
◆ DeleteChild()
| override void Ofcas.Lk.Api.Client.Core.ProjectCenter.DeleteChild |
( |
ProjectInfo |
projectInfo | ) |
|
Deletes a project based on an info object.
- Parameters
-
| projectInfo | Returns an info of the project to be deleted. |
◆ DeleteDirectory()
| void Ofcas.Lk.Api.Client.Core.ProjectCenter.DeleteDirectory |
( |
string |
directoryName | ) |
|
Deletes the directory from the current project center.
- Parameters
-
| directoryName | The name of the directory to be deleted. |
- Exceptions
-
| ArgumentNullException | Occurs if the directory name is null or empty. |
◆ GetChild()
| override Project Ofcas.Lk.Api.Client.Core.ProjectCenter.GetChild |
( |
ProjectInfo |
projectInfo | ) |
|
◆ GetProject()
◆ GetProjectCenter()
Creates a new ProjectCenter for the given directory. Each ProjectCenter belongs to a fixed directory.
- Parameters
-
| projectDirectoryInfo | The project directory to use |
- Returns
- The new ProjectCenter
- Exceptions
-
| Exception | if creating project-center failed (for example invalid directory) |
◆ MoveFrom()
Moves an object into this directory based on an info object.
- Parameters
-
| coreInfo | The info of the object to be moved. |
- Returns
- Returns an info object of the moved / created project.
◆ Rename()
Changes the name of this project directory to the stated name. Renaming the root directory or the recyclebin is not possible.
- Parameters
-
| directoryName | The new name of this project directory. Cannot contain any invalid chars defined by Path.GetInvalidFileNameChars. |
- Returns
- Returns an updated info of this project directory.
◆ OwnDirectoryInfo
Returns the directory info for the project-center
The documentation for this class was generated from the following file:
- Core/src/ProjectCenter.cs