C# 클래스 BExIS.Web.Shell.Areas.SAM.Controllers.TenantsController

상속: Controller
파일 보기 프로젝트 열기: BEXIS2/Core

공개 메소드들

메소드 설명
Activate ( string id ) : System.Web.Mvc.ActionResult

If the tenat is not active, activates it and returns to the list action with updated information reports any problem, otherwise

Create ( ) : System.Web.Mvc.ActionResult

Should accept a tenant package in a zip form (or a handle to it), check its validity, check for duplication, etc and install it as a new tenant if not exist, othwerise as an update to the exisiting one.

Details ( string id ) : System.Web.Mvc.ActionResult

Shows the deatils of the chosen tenant. Indicates if it is: default, active, and current

Download ( string id ) : System.Web.Mvc.ActionResult

Creates a zip downloadable of the specified tenant and pushes it to the client The zip file has the predefined folder/file structure

Edit ( string id ) : System.Web.Mvc.ActionResult
Inactivate ( string id ) : System.Web.Mvc.ActionResult

If the tenat is active, inactivates it and returns to the list action with updated information reports any problem, otherwise

There MUST at least one active tenant remain in the list after this operation.

Index ( ) : System.Web.Mvc.ActionResult

List all the registered tenants with thier status, etc.

The one that is currently serving, should be highlighted.

MakeDefault ( string id ) : System.Web.Mvc.ActionResult
Unregister ( string id ) : System.Web.Mvc.ActionResult

If the tenat is inactive and is not default, deletes it and returns to the list action with updated information reports any problem, otherwise

1. It is not allowed to delete an ACTIVE tenant. If needed, the chosen tenant must be inctivated first. 2. It is not allowed to delete the DEFAULT tenant. If needed, another tenant must be set as the default, before deleting the chosen one. 3.There MUST at least one active tenant remaining in the list after this operation.

비공개 메소드들

메소드 설명
Create ( TenantCreateModel model ) : System.Web.Mvc.ActionResult
Delete ( string id ) : void
Edit ( TenantEditModel model ) : System.Web.Mvc.ActionResult
IsDeletable ( string id ) : bool
Tenants_Select ( ) : System.Web.Mvc.ActionResult

메소드 상세

Activate() 공개 메소드

If the tenat is not active, activates it and returns to the list action with updated information reports any problem, otherwise
public Activate ( string id ) : System.Web.Mvc.ActionResult
id string
리턴 System.Web.Mvc.ActionResult

Create() 공개 메소드

Should accept a tenant package in a zip form (or a handle to it), check its validity, check for duplication, etc and install it as a new tenant if not exist, othwerise as an update to the exisiting one.
public Create ( ) : System.Web.Mvc.ActionResult
리턴 System.Web.Mvc.ActionResult

Details() 공개 메소드

Shows the deatils of the chosen tenant. Indicates if it is: default, active, and current
public Details ( string id ) : System.Web.Mvc.ActionResult
id string
리턴 System.Web.Mvc.ActionResult

Download() 공개 메소드

Creates a zip downloadable of the specified tenant and pushes it to the client The zip file has the predefined folder/file structure
public Download ( string id ) : System.Web.Mvc.ActionResult
id string The ID of the tenat its branding package is requested
리턴 System.Web.Mvc.ActionResult

Edit() 공개 메소드

public Edit ( string id ) : System.Web.Mvc.ActionResult
id string
리턴 System.Web.Mvc.ActionResult

Inactivate() 공개 메소드

If the tenat is active, inactivates it and returns to the list action with updated information reports any problem, otherwise
There MUST at least one active tenant remain in the list after this operation.
public Inactivate ( string id ) : System.Web.Mvc.ActionResult
id string
리턴 System.Web.Mvc.ActionResult

Index() 공개 메소드

List all the registered tenants with thier status, etc.
The one that is currently serving, should be highlighted.
public Index ( ) : System.Web.Mvc.ActionResult
리턴 System.Web.Mvc.ActionResult

MakeDefault() 공개 메소드

public MakeDefault ( string id ) : System.Web.Mvc.ActionResult
id string
리턴 System.Web.Mvc.ActionResult

Unregister() 공개 메소드

If the tenat is inactive and is not default, deletes it and returns to the list action with updated information reports any problem, otherwise
1. It is not allowed to delete an ACTIVE tenant. If needed, the chosen tenant must be inctivated first. 2. It is not allowed to delete the DEFAULT tenant. If needed, another tenant must be set as the default, before deleting the chosen one. 3.There MUST at least one active tenant remaining in the list after this operation.
public Unregister ( string id ) : System.Web.Mvc.ActionResult
id string
리턴 System.Web.Mvc.ActionResult