Ofcas.Lk.Api.Client - Version 3.0  3.0.0.111
Ofcas.Lk.Api.Client.Ui.LoginScopeUi Class Reference

The LoginScopeUi is the the scope to interact with LogiKal via user interfaces. The LoginScopeUi can only be obtained by using the ServiceProxyBase. It is necessary that a service is running. Currently only memory binding is supported. The children are of type ProjectCenterUi. The children can be received from the CoreObject<T>.Infos. More...

Inheritance diagram for Ofcas.Lk.Api.Client.Ui.LoginScopeUi:
Ofcas.Lk.Api.Client.Core.LoginScope Ofcas.Lk.Api.Client.Core.CoreObjectWithChildren< ProjectCenter, ProjectCenterInfo >

Public Member Functions

 LoginScopeUi (IApiService apiService, Guid coreObjectId, bool ownsObject=true)
 
new ProjectCenterUi GetChild (ProjectCenterInfo projectCenterInfo)
 Gets a ProjectCenterUi based on a ProjectCenterInfo. More...
 
new ProjectCenterUi GetChild (ProjectCenterInfo projectCenterInfo, ProjectInfo projectInfo)
 Gets a ProjectCenterUi based on a ProjectCenterInfo and a ProjectInfo. More...
 
new ProjectCenterUi GetProjectCenter (ProjectCenterInfo projectCenterInfo)
 This method is deprecated. Please use GetChild(ProjectCenterInfo) instead. More...
 
new ProjectCenterUi GetProjectCenter (ProjectCenterInfo projectCenterInfo, ProjectInfo projectInfo)
 This method is deprecated. Please use GetChild(ProjectCenterInfo, ProjectInfo) instead. More...
 
new IList< LoginRunnableProgram > GetRunnablePrograms ()
 Retrieves a list of available LoginRunnablePrograms. More...
 
OperationStatus RunProgram (LoginRunnableProgram program, Dictionary< string, object > optionalParameters=null)
 This method is deprecated. Please use ShowModal(LoginRunnableProgram, Dictionary<string, object>) instead. More...
 
DialogResultCode ShowModal (LoginRunnableProgram program, Dictionary< string, object > parameters)
 Shows the LoginRunnableProgram in a modal window. More...
 
ISynchronizedOperation Show (LoginRunnableProgram program, Dictionary< string, object > parameters)
 Shows the LoginRunnableProgram in a non-modal window. More...
 
DialogResultCode WaitForShow (ISynchronizedOperation synchronizedOperation)
 Waits for the ISynchronizedOperation to finish. More...
 
IDialogResult< ProjectSelectProject ()
 Selects a project via User Interface (UI). More...
 
IDialogResult< ElevationSelectElevation ()
 Selects an elevation via User Interface (UI). More...
 
- Public Member Functions inherited from Ofcas.Lk.Api.Client.Core.CoreObjectWithChildren< ProjectCenter, ProjectCenterInfo >
void DisposeChild (ICoreObject coreObject)
 
bool IsParentOf (ICoreObject coreObject)
 
abstract TChildInfo RefreshChild (TChildInfo childInfo)
 
void RefreshChildren ()
 
virtual TChild GetChild (TChildInfo childInfo)
 
virtual IEnumerable< TChild > GetChildren (IEnumerable< TChildInfo > childrenInfos=null)
 
virtual OperationInfo CanCreateChild ()
 
virtual TChildInfo CreateChild ()
 
virtual OperationInfo CanDeleteChild (TChildInfo childInfo)
 
virtual void DeleteChild (TChildInfo childInfo)
 
virtual OperationInfo CanMoveFrom (ICoreInfo coreInfo, bool deepCheck=true)
 
virtual TChildInfo MoveFrom (ICoreInfo coreInfo)
 
virtual OperationInfo CanCopyFrom (ICoreInfo coreInfo, bool deepCheck=true)
 
virtual TChildInfo CopyFrom (ICoreInfo coreInfo)
 

Protected Member Functions

override ProjectCenter CreateNewInstance (Guid coreObjectId, ProjectCenterInfo projectCenterInfo, ProjectDirectoryInfo projectDirectoryInfo)
 
- Protected Member Functions inherited from Ofcas.Lk.Api.Client.Core.CoreObjectWithChildren< ProjectCenter, ProjectCenterInfo >
 CoreObjectWithChildren (IApiService apiService, Guid coreObjectId, bool ownsObject=true)
 
TChildInfo RefreshChild (Predicate< TChildInfo > predicate, object childInformation)
 Refreshes all infos and returns the appropriate info. More...
 
virtual void RefreshChildren (bool clearEvents)
 

Additional Inherited Members

- Public Attributes inherited from Ofcas.Lk.Api.Client.Core.CoreObjectWithChildren< ProjectCenter, ProjectCenterInfo >
IList< TChildInfo > ChildrenInfos
 

Detailed Description

The LoginScopeUi is the the scope to interact with LogiKal via user interfaces. The LoginScopeUi can only be obtained by using the ServiceProxyBase. It is necessary that a service is running. Currently only memory binding is supported. The children are of type ProjectCenterUi. The children can be received from the CoreObject<T>.Infos.

Member Function Documentation

◆ GetChild() [1/2]

new ProjectCenterUi Ofcas.Lk.Api.Client.Ui.LoginScopeUi.GetChild ( ProjectCenterInfo  projectCenterInfo)

Gets a ProjectCenterUi based on a ProjectCenterInfo.

Parameters
projectCenterInfoThe ProjectCenterInfo of the ProjectCenterUi to be returned.
Returns
Returns a ProjectCenterUi based on the given ProjectCenterInfo.

◆ GetChild() [2/2]

new ProjectCenterUi Ofcas.Lk.Api.Client.Ui.LoginScopeUi.GetChild ( ProjectCenterInfo  projectCenterInfo,
ProjectInfo  projectInfo 
)

Gets a ProjectCenterUi based on a ProjectCenterInfo and a ProjectInfo.

Parameters
projectCenterInfoThe ProjectCenterInfo of the ProjectCenterUi to be returned.
projectInfoThe ProjectInfo contained in the ProjectCenterUi to be returned.
Returns
Returns a ProjectCenterUi based on the given ProjectCenterInfo and ProjectInfo.

◆ GetProjectCenter() [1/2]

new ProjectCenterUi Ofcas.Lk.Api.Client.Ui.LoginScopeUi.GetProjectCenter ( ProjectCenterInfo  projectCenterInfo)

This method is deprecated. Please use GetChild(ProjectCenterInfo) instead.

◆ GetProjectCenter() [2/2]

new ProjectCenterUi Ofcas.Lk.Api.Client.Ui.LoginScopeUi.GetProjectCenter ( ProjectCenterInfo  projectCenterInfo,
ProjectInfo  projectInfo 
)

This method is deprecated. Please use GetChild(ProjectCenterInfo, ProjectInfo) instead.

◆ GetRunnablePrograms()

new IList<LoginRunnableProgram> Ofcas.Lk.Api.Client.Ui.LoginScopeUi.GetRunnablePrograms ( )

Retrieves a list of available LoginRunnablePrograms.

Returns
Returns a list of available LoginRunnablePrograms.

◆ RunProgram()

OperationStatus Ofcas.Lk.Api.Client.Ui.LoginScopeUi.RunProgram ( LoginRunnableProgram  program,
Dictionary< string, object >  optionalParameters = null 
)

This method is deprecated. Please use ShowModal(LoginRunnableProgram, Dictionary<string, object>) instead.

◆ SelectElevation()

IDialogResult<Elevation> Ofcas.Lk.Api.Client.Ui.LoginScopeUi.SelectElevation ( )

Selects an elevation via User Interface (UI).

Returns
Returns a dialog result which indicates how the Ui was handled. Returns a ready-to-use Elevation if the IDialogResult.Code is DialogResultCode.Accepted.
Exceptions
ApiExceptionOccurs if the method fails.

◆ SelectProject()

IDialogResult<Project> Ofcas.Lk.Api.Client.Ui.LoginScopeUi.SelectProject ( )

Selects a project via User Interface (UI).

Returns
Returns a dialog result which indicates how the Ui was handled. Returns a ready-to-use Project if the IDialogResult.Code is DialogResultCode.Accepted.
Exceptions
ApiExceptionOccurs if the method fails.

◆ Show()

ISynchronizedOperation Ofcas.Lk.Api.Client.Ui.LoginScopeUi.Show ( LoginRunnableProgram  program,
Dictionary< string, object >  parameters 
)

Shows the LoginRunnableProgram in a non-modal window.

Parameters
programThe LoginRunnableProgram to be run.
parametersThe optional parameters for the LoginRunnableProgram to be run. See WellKnownParameterKeys.LoginScope.Program for the available keys.
Returns
Returns an ISynchronizedOperation for the LoginRunnableProgram.
Exceptions
ApiExceptionOccurs if the method fails.

◆ ShowModal()

DialogResultCode Ofcas.Lk.Api.Client.Ui.LoginScopeUi.ShowModal ( LoginRunnableProgram  program,
Dictionary< string, object >  parameters 
)

Shows the LoginRunnableProgram in a modal window.

Parameters
programThe LoginRunnableProgram to be run.
parametersThe optional parameters for the LoginRunnableProgram to be run. See WellKnownParameterKeys.LoginScope.Program for the available keys.
Returns
Returns a DialogResultCode for the LoginRunnableProgram.
Exceptions
ApiExceptionOccurs if the method fails.

◆ WaitForShow()

DialogResultCode Ofcas.Lk.Api.Client.Ui.LoginScopeUi.WaitForShow ( ISynchronizedOperation  synchronizedOperation)

Waits for the ISynchronizedOperation to finish.

Parameters
synchronizedOperationThe ISynchronizedOperation to be finished.
Returns
Returns a DialogResultCode for the ISynchronizedOperation.

The documentation for this class was generated from the following file: