PHP 클래스 Scalr_UI_Controller_Roles

상속: extends Scalr_UI_Controller
파일 보기 프로젝트 열기: scalr/scalr 1 사용 예제들

공개 메소드들

메소드 설명
builderAction ( boolean $devel = false, string $serverId = null )
createAction ( )
defaultAction ( )
editAction ( integer $roleId )
hasAccess ( )
listRoleCategories ( boolean $notEmpty = false, boolean $checkRoleImages = false ) : array Returns list Role Categories
managerAction ( ) Role manager
xBuildAction ( string $platform, string $architecture, JsonData $behaviors, string $name = '', boolean $createImage = false, string $imageId, string $cloudLocation, string $osId, integer $hvm, JsonData $advanced, JsonData $chef )
xCloneAction ( integer $roleId, string $newRoleName )
xGetInfoAction ( integer $roleId )
xGetListAction ( integer $roleId = null, string $catId = null, string $osFamily = null, string $keyword = null, string $platform = null )
xListRolesAction ( integer $roleId = null, string $platform = null, string $cloudLocation = null, string $imageId = null, string $scope = null, integer $chefServerId = null, integer $catId = null, string $osFamily = null, boolean $isQuickStart = false, boolean $isDeprecated = false, string $status = null, JsonData $addImage = null ) Get list of roles for listView
xPromoteAction ( integer $id ) Move role to account scope
xRemoveAction ( JsonData $roles )
xSaveAction ( integer $roleId, string $name, string $description, string $osId, integer $catId, boolean $isQuickStart = false, boolean $isDeprecated = false, boolean $isScalarized = true, JsonData $behaviors, JsonData $images, JsonData $scripts, JsonData $variables, JsonData $chef, JsonData $environments )

비공개 메소드들

메소드 설명
getInfo ( integer $roleId, boolean $extended = false, array $canAddImage = null ) : array Get information about role
isHvmBundleTypeOs ( Scalr\Model\Entity\Os $os ) : boolean Check whether specified OS should have EBS HVM bundle type

메소드 상세

builderAction() 공개 메소드

public builderAction ( boolean $devel = false, string $serverId = null )
$devel boolean
$serverId string

createAction() 공개 메소드

public createAction ( )

defaultAction() 공개 메소드

public defaultAction ( )

editAction() 공개 메소드

public editAction ( integer $roleId )
$roleId integer

hasAccess() 공개 메소드

또한 보기: Scalr_UI_Controller::hasAccess()
public hasAccess ( )

listRoleCategories() 공개 메소드

Returns list Role Categories
public listRoleCategories ( boolean $notEmpty = false, boolean $checkRoleImages = false ) : array
$notEmpty boolean Not empty categories only
$checkRoleImages boolean Count roles with no images
리턴 array [id => name]

managerAction() 공개 메소드

Role manager
public managerAction ( )

xBuildAction() 공개 메소드

public xBuildAction ( string $platform, string $architecture, JsonData $behaviors, string $name = '', boolean $createImage = false, string $imageId, string $cloudLocation, string $osId, integer $hvm, JsonData $advanced, JsonData $chef )
$platform string
$architecture string
$behaviors Scalr\UI\Request\JsonData
$name string
$createImage boolean
$imageId string
$cloudLocation string
$osId string
$hvm integer
$advanced Scalr\UI\Request\JsonData
$chef Scalr\UI\Request\JsonData

xCloneAction() 공개 메소드

public xCloneAction ( integer $roleId, string $newRoleName )
$roleId integer
$newRoleName string

xGetInfoAction() 공개 메소드

public xGetInfoAction ( integer $roleId )
$roleId integer

xGetListAction() 공개 메소드

public xGetListAction ( integer $roleId = null, string $catId = null, string $osFamily = null, string $keyword = null, string $platform = null )
$roleId integer
$catId string
$osFamily string
$keyword string
$platform string Get list of roles for roles library

xListRolesAction() 공개 메소드

Get list of roles for listView
public xListRolesAction ( integer $roleId = null, string $platform = null, string $cloudLocation = null, string $imageId = null, string $scope = null, integer $chefServerId = null, integer $catId = null, string $osFamily = null, boolean $isQuickStart = false, boolean $isDeprecated = false, string $status = null, JsonData $addImage = null )
$roleId integer optional
$platform string optional
$cloudLocation string optional
$imageId string optional
$scope string optional
$chefServerId integer optional
$catId integer optional
$osFamily string optional
$isQuickStart boolean optional
$isDeprecated boolean optional
$status string optional
$addImage Scalr\UI\Request\JsonData optional

xPromoteAction() 공개 메소드

Move role to account scope
public xPromoteAction ( integer $id )
$id integer ID of Role

xRemoveAction() 공개 메소드

public xRemoveAction ( JsonData $roles )
$roles Scalr\UI\Request\JsonData

xSaveAction() 공개 메소드

public xSaveAction ( integer $roleId, string $name, string $description, string $osId, integer $catId, boolean $isQuickStart = false, boolean $isDeprecated = false, boolean $isScalarized = true, JsonData $behaviors, JsonData $images, JsonData $scripts, JsonData $variables, JsonData $chef, JsonData $environments )
$roleId integer
$name string
$description string
$osId string
$catId integer
$isQuickStart boolean
$isDeprecated boolean
$isScalarized boolean
$behaviors Scalr\UI\Request\JsonData
$images Scalr\UI\Request\JsonData
$scripts Scalr\UI\Request\JsonData
$variables Scalr\UI\Request\JsonData
$chef Scalr\UI\Request\JsonData
$environments Scalr\UI\Request\JsonData