As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<?php if (isset($_SERVER[ALF_AVAILABLE]) == false) { require_once "Alfresco/Service/Repository.php"; require_once "Alfresco/Service/Session.php"; require_once "Alfresco/Service/SpacesStore.php"; require_once "Alfresco/Service/Node.php"; } require_once "../config.php"; if (isset($_SESSION) == false) { // Start the session session_start(); } // Create the session $repository = new Repository($repositoryUrl); $ticket = null; if (isset($_SESSION[ticket]) == false) { $ticket = $repository->authenticate($userName, $password); $_SESSION[ticket] = $ticket; } else { $ticket = $_SESSION[ticket]; } $session = $repository->createSession($ticket); $spacesStore = new SpacesStore($session); $personNodes = $session->query($spacesStore, 'TYPE:"cm:person" AND @cm:userName:"cboita"'); foreach ($personNodes as $user) { print "nUser Properties: nn"; $userProps = $user->getProperties(); foreach($userProps as $k => $v) { print ": $k -> $vnn"; } print "n User Aspects: nn"; $aspects = $user->getAspects(); foreach ($aspects as $a) { print ": $ann"; } } ?>