03-21-2010 05:47 PM
03-22-2010 06:49 AM
04-15-2010 06:08 AM
05-11-2010 11:09 AM
$nodeId = "//PUT HERE UR NODEID";
$repositoryUrl = "http://localhost:8080/alfresco/api";
$userName = "admin";
$password = "admin";
$repository = new Repository($repositoryUrl);
$ticket = $repository->authenticate($userName, $password);
$session = $repository->createSession($ticket);
$spacesStore = new SpacesStore($session);
//$result = $session->query($spacesStore, "PUT HERE YOUR LUCENE QUERY");
// FOR EXAMPLE -> QUERY OF Gyro.Gearless:
$result = $session->query($spacesStore, "TYPE:\"cm:person\" AND @cm\:name:\"Jones\"");
07-08-2010 07:25 AM
If you will use php to retrive for user information , you will use MYsql data.
07-08-2010 12:44 PM
07-09-2010 04:02 AM
<?php
define('sugarEntry', TRUE);
$apiRoot = dirname(__FILE__) . '/../src';
set_include_path($apiRoot . PATH_SEPARATOR . get_include_path());
print "Include path set to [" . get_include_path() . "}\n";
require_once "Alfresco/Service/Repository.php";
require_once "Alfresco/Service/Session.php";
require_once "Alfresco/Service/SpacesStore.php";
require_once "config.php";
$timestamp = time();
$repository = new AlfRepository($repositoryUrl);
$ticket = $repository->authenticate($userName, $password);
print "Alfresco ticket is $ticket\n";
$session = $repository->createSession($ticket);
$spacesStore = new AlfSpacesStore($session);
$personNodes = $session->query($spacesStore, 'TYPE:"cm:person" AND @cm\\:userName:"wolland"');
foreach ($personNodes as $gyro) {
print "– Properties ————–\n";
$gyroProps = $gyro->getProperties();
foreach($gyroProps as $k => $v) {
print ": $k -> $v\n";
}
print "– Aspects —————–\n";
$aspects = $gyro->getAspects();
foreach ($aspects as $a) {
print ": $a\n";
}
}
?>
<?php
$repositoryUrl = "http://conman1.acmecorp.net:8080/alfresco/api";
$userName = "admin";
$password = "töp$€(re7";
?>
07-12-2010 05:25 AM
08-09-2010 06:59 AM
08-04-2011 02:25 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.