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.
php5 {the-script-name}.php {url-to-server} {username} {password} {a-folder-name} {a-new-folder-to-create}
ini_set('display_errors', '1'); error_reporting(0); include("config.php"); require_once ('cmis_repository_wrapper.php'); $repo_url = URL; $repo_username = USERNAME; $repo_password = PASSWORD; //Check cmis service connect or not try{ $client = new CMISService($repo_url, $repo_username, $repo_password); }catch (Exception $ec) { echo "Cmis connection issue"; die; } $sysstartdate = mktime(0,0,0,6,1,2012); // start 1st June $today = strtotime(date("Y-m-d")); $ltthan = $sysstartdate; try{ do { $gtthan = $ltthan; $ltthan = strtotime(date("Y-m-d",$gtthan)." +1 month"); $qstring = "select * from fgdt:adocumenttype where cmis:creationDate >= TIMESTAMP '" . date("Y-m-d", $gtthan) ."T00:00:00.000+00:00' and cmis:creationDate < TIMESTAMP '". date("Y-m-d", $ltthan) . "T00:00:00.000+00:00'"; $objs = $client->query($qstring); try{ foreach ($objs->objectList as $obj) { //!!! YOUR CODE TO DO THINGS WITH THE METADATA HERE } }catch (Exception $e2) { //echo "Caught exception: ".$e2->getMessage()."\n"; } } while ($ltthan < $today); } catch (Exception $e1) { echo "Caught exception: ".$e1->getMessage()."\n"; die; }
http://localhost:8080/alfresco/service/api/cmis
Hi
Did you manage to get a solution to this issue? I'm facing the same problem with Drupal 7.5.3 and Alfresco Community 5.2.
Any help would be greatly appreciated.