<< Click to Display Table of Contents >>

UpdateItemGroupAuth

아이템에 대한 그룹의 권한을 변경합니다.

Prototype

bool UpdateItemGroupAuth(string GroupPath, string ItemFullPath, string NewPermission)

Parameters

GroupPath

그룹 경로

ItemFullPath

아이템 전체 경로

NewPermission

권한 정보

None, View, Read, ReadWrite 중 하나의 값으로 설정

Reference

그룹 이름이 변경된 경우 true가 리턴되고, 실패한 경우 false가 리턴됩니다.

Example

function updateItemGroupAuth(){

   var rep = OZCreator.GetBuiltInObject(OZBuiltInObject.REPOSITORY);

   var login = rep.Login("admin","admin");

   if (login) {

       var groupPath = "/";

       var itemFullPath = "/parameter_test.odi";

       var newPermission = "Read";

       // None, View, Read, ReadWrite

       var result = rep.UpdateItemGroupAuth(groupPath, itemFullPath, newPermission);

       if (result == true) {

           _DEBUG("result="+result);

       } else {

       _DEBUG("result="+result+" ["+rep.GetLastErrorCode()+"] "+rep.GetErrorMessageByCode(rep.GetLastErrorCode()));

       }

       rep.Logout();

   }

}