<< Click to Display Table of Contents >>

GetAccessibleTopNodePath

리파지토리 최상위 노드의 전체 경로를 가져옵니다.

Prototype

string GetAccessibleTopNodePath()

Example

function getCategoryListInCategory(){

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

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

   if (login) {

       var cfullpath = "/";

       var childCategoryNames = new Array();

       var childCategoryFullPaths = new Array();

       _DEBUG("Start to check category list");

       var result = rep.GetCategoryListInCategory(cfullpath, childCategoryNames, childCategoryFullPaths);

       if (result == true) {

       for (i=0; i <childCategoryNames.length; i++) {

           _DEBUG("result="+result+" childCategoryNames["+i+"]="+childCategoryNames[i]+"  childCategoryFullPaths ["+i+"]="+childCategoryFullPaths[i] );

       }

       } else {

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

       }

       rep.Logout();

   }

}