<< Click to Display Table of Contents >>

UpdateCategoryGroupAuth

카테고리에 대한 그룹 권한을 변경합니다.

Prototype

bool UpdateCategoryGroupAuth(string GroupPath, string CategoryFullPath, string NewPermission)

Parameters

GroupPath

그룹 경로

CategoryFullPath

카테고리 전체 경로

NewPermission

권한 정보

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

Reference

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

Example

function updateCategoryGroupAuth(){

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

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

   if (login) {

       var groupPath = "/";

       var itemFullPath = "/";

       var newPermission = "ReadWrite";

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

 

       if (result == true) {

           _DEBUG("result="+result);

       } else {

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

       }

       rep.Logout();

   }

}