Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
120 changed files
with
13,906 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
declare(ENCODING = 'utf-8'); | ||
|
||
/* * | ||
* This script belongs to the FLOW3 package "PHPCR". * | ||
* * | ||
* It is free software; you can redistribute it and/or modify it under * | ||
* the terms of the GNU Lesser General Public License as published by the * | ||
* Free Software Foundation, either version 3 of the License, or (at your * | ||
* option) any later version. * | ||
* * | ||
* This script is distributed in the hope that it will be useful, but * | ||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- * | ||
* TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser * | ||
* General Public License for more details. * | ||
* * | ||
* You should have received a copy of the GNU Lesser General Public * | ||
* License along with the script. * | ||
* If not, see http://www.gnu.org/licenses/lgpl.html * | ||
* * | ||
* The TYPO3 project - inspiring people to share! * | ||
* */ | ||
|
||
/** | ||
* Exception thrown by access-related methods. | ||
* | ||
* @version $Id$ | ||
* @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later | ||
* @license http://opensource.org/licenses/bsd-license.php Simplified BSD License | ||
* @api | ||
*/ | ||
class PHPCR_AccessDeniedException extends PHPCR_Security_AccessControlException { | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<?php | ||
declare(ENCODING = 'utf-8'); | ||
|
||
/* * | ||
* This script belongs to the FLOW3 package "PHPCR". * | ||
* * | ||
* It is free software; you can redistribute it and/or modify it under * | ||
* the terms of the GNU Lesser General Public License as published by the * | ||
* Free Software Foundation, either version 3 of the License, or (at your * | ||
* option) any later version. * | ||
* * | ||
* This script is distributed in the hope that it will be useful, but * | ||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- * | ||
* TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser * | ||
* General Public License for more details. * | ||
* * | ||
* You should have received a copy of the GNU Lesser General Public * | ||
* License along with the script. * | ||
* If not, see http://www.gnu.org/licenses/lgpl.html * | ||
* * | ||
* The TYPO3 project - inspiring people to share! * | ||
* */ | ||
|
||
/** | ||
* A Binary object holds a JCR property value of type BINARY. | ||
* | ||
* @version $Id$ | ||
* @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later | ||
* @license http://opensource.org/licenses/bsd-license.php Simplified BSD License | ||
* @api | ||
*/ | ||
interface PHPCR_BinaryInterface { | ||
|
||
/** | ||
* Returns a stream representation of this value. | ||
* Each call to getStream() returns a new stream. | ||
* The API consumer is responsible for calling close() on the returned | ||
* stream. | ||
* | ||
* @return resource A stream representation of this value. | ||
* @throws BadMethodCallException if dispose() has already been called on this Binary | ||
* @throws PHPCR_RepositoryException if an error occurs. | ||
* @api | ||
*/ | ||
public function getStream(); | ||
|
||
/** | ||
* Reads successive bytes from the specified position in this Binary into | ||
* the passed string until $limit or the end of the Binary is encountered | ||
* (whichever comes first). | ||
* | ||
* @param string $bytes the buffer into which the data is read. | ||
* @param integer $position the position in this Binary from which to start reading bytes. | ||
* @param integer $limit how many bytes to read, unlimited by default | ||
* @return integer the number of bytes read into the buffer | ||
* @throws RuntimeException if an I/O error occurs. | ||
* @throws InvalidArgumentException if offset is negative. | ||
* @throws BadMethodCallException if dispose() has already been called on this Binary | ||
* @throws PHPCR_RepositoryException if another error occurs. | ||
* @api | ||
*/ | ||
public function read(&$bytes, $position, $limit = 0); | ||
|
||
/** | ||
* Returns the size of this Binary value in bytes. | ||
* | ||
* @return integer the size of this value in bytes. | ||
* @throws BadMethodCallException if dispose() has already been called on this Binary | ||
* @throws PHPCR_RepositoryException if an error occurs. | ||
* @api | ||
*/ | ||
public function getSize(); | ||
|
||
/** | ||
* Releases all resources associated with this Binary object and informs the | ||
* repository that these resources may now be reclaimed. | ||
* An application should call this method when it is finished with the | ||
* Binary object. | ||
* | ||
* @return void | ||
* @api | ||
*/ | ||
public function dispose(); | ||
|
||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
declare(ENCODING = 'utf-8'); | ||
|
||
/* * | ||
* This script belongs to the FLOW3 package "PHPCR". * | ||
* * | ||
* It is free software; you can redistribute it and/or modify it under * | ||
* the terms of the GNU Lesser General Public License as published by the * | ||
* Free Software Foundation, either version 3 of the License, or (at your * | ||
* option) any later version. * | ||
* * | ||
* This script is distributed in the hope that it will be useful, but * | ||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- * | ||
* TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser * | ||
* General Public License for more details. * | ||
* * | ||
* You should have received a copy of the GNU Lesser General Public * | ||
* License along with the script. * | ||
* If not, see http://www.gnu.org/licenses/lgpl.html * | ||
* * | ||
* The TYPO3 project - inspiring people to share! * | ||
* */ | ||
|
||
/** | ||
* Interface for use by getImportContentHandler. It is currently acting as a | ||
* sign that whatever we want to return from getImportContentHandler needs to be | ||
* defined in more detail. | ||
* | ||
* @version $Id$ | ||
* @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later | ||
* @license http://opensource.org/licenses/bsd-license.php Simplified BSD License | ||
*/ | ||
interface PHPCR_ContentHandlerInterface {} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
declare(ENCODING = 'utf-8'); | ||
|
||
/* * | ||
* This script belongs to the FLOW3 package "PHPCR". * | ||
* * | ||
* It is free software; you can redistribute it and/or modify it under * | ||
* the terms of the GNU Lesser General Public License as published by the * | ||
* Free Software Foundation, either version 3 of the License, or (at your * | ||
* option) any later version. * | ||
* * | ||
* This script is distributed in the hope that it will be useful, but * | ||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- * | ||
* TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser * | ||
* General Public License for more details. * | ||
* * | ||
* You should have received a copy of the GNU Lesser General Public * | ||
* License along with the script. * | ||
* If not, see http://www.gnu.org/licenses/lgpl.html * | ||
* * | ||
* The TYPO3 project - inspiring people to share! * | ||
* */ | ||
|
||
/** | ||
* Interface for all credentials that may be passed to the | ||
* Repository.login(Credentials credentials, String workspaceName) method. | ||
* Serves as a marker interface that all repositories must implement when | ||
* providing a credentials class. See SimpleCredentials and GuestCredentials | ||
* for examples of such a class. | ||
* | ||
* @version $Id$ | ||
* @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later | ||
* @license http://opensource.org/licenses/bsd-license.php Simplified BSD License | ||
*/ | ||
interface PHPCR_CredentialsInterface {} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
declare(ENCODING = 'utf-8'); | ||
|
||
/* * | ||
* This script belongs to the FLOW3 package "PHPCR". * | ||
* * | ||
* It is free software; you can redistribute it and/or modify it under * | ||
* the terms of the GNU Lesser General Public License as published by the * | ||
* Free Software Foundation, either version 3 of the License, or (at your * | ||
* option) any later version. * | ||
* * | ||
* This script is distributed in the hope that it will be useful, but * | ||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- * | ||
* TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser * | ||
* General Public License for more details. * | ||
* * | ||
* You should have received a copy of the GNU Lesser General Public * | ||
* License along with the script. * | ||
* If not, see http://www.gnu.org/licenses/lgpl.html * | ||
* * | ||
* The TYPO3 project - inspiring people to share! * | ||
* */ | ||
|
||
/** | ||
* GuestCredentials implements the Credentials interface and is used to obtain | ||
* a "guest", "public" or "anonymous" session. | ||
* Note that the characteristics of the session created from the | ||
* GuestCredentials remain implementation specific. | ||
* | ||
* @version $Id$ | ||
* @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later | ||
* @license http://opensource.org/licenses/bsd-license.php Simplified BSD License | ||
* @scope prototype | ||
*/ | ||
final class PHPCR_GuestCredentials implements PHPCR_CredentialsInterface {} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?php | ||
declare(ENCODING = 'utf-8'); | ||
|
||
/* * | ||
* This script belongs to the FLOW3 package "PHPCR". * | ||
* * | ||
* It is free software; you can redistribute it and/or modify it under * | ||
* the terms of the GNU Lesser General Public License as published by the * | ||
* Free Software Foundation, either version 3 of the License, or (at your * | ||
* option) any later version. * | ||
* * | ||
* This script is distributed in the hope that it will be useful, but * | ||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- * | ||
* TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser * | ||
* General Public License for more details. * | ||
* * | ||
* You should have received a copy of the GNU Lesser General Public * | ||
* License along with the script. * | ||
* If not, see http://www.gnu.org/licenses/lgpl.html * | ||
* * | ||
* The TYPO3 project - inspiring people to share! * | ||
* */ | ||
|
||
/** | ||
* The possible actions specified by the uuidBehavior parameter in | ||
* Workspace->importXML(), Session->importXML(), | ||
* Workspace->getImportContentHandler() and | ||
* Session->getImportContentHandler(). | ||
* * | ||
* @version $Id$ | ||
* @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later | ||
* @license http://opensource.org/licenses/bsd-license.php Simplified BSD License | ||
* @api | ||
*/ | ||
interface PHPCR_ImportUUIDBehaviourInterface { | ||
|
||
/** | ||
* When importing remove existing item upon collision. | ||
* @api | ||
*/ | ||
const IMPORT_UUID_COLLISION_REMOVE_EXISTING = 1; | ||
|
||
/** | ||
* When importing replace existing item upon collision. | ||
* @api | ||
*/ | ||
const IMPORT_UUID_COLLISION_REPLACE_EXISTING = 2; | ||
|
||
/** | ||
* When importing throw exception upon collision. | ||
* @api | ||
*/ | ||
const IMPORT_UUID_COLLISION_THROW = 3; | ||
|
||
/** | ||
* When importing create new UUIDs. | ||
* @api | ||
*/ | ||
const IMPORT_UUID_CREATE_NEW = 0; | ||
|
||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
declare(ENCODING = 'utf-8'); | ||
|
||
/* * | ||
* This script belongs to the FLOW3 package "PHPCR". * | ||
* * | ||
* It is free software; you can redistribute it and/or modify it under * | ||
* the terms of the GNU Lesser General Public License as published by the * | ||
* Free Software Foundation, either version 3 of the License, or (at your * | ||
* option) any later version. * | ||
* * | ||
* This script is distributed in the hope that it will be useful, but * | ||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- * | ||
* TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser * | ||
* General Public License for more details. * | ||
* * | ||
* You should have received a copy of the GNU Lesser General Public * | ||
* License along with the script. * | ||
* If not, see http://www.gnu.org/licenses/lgpl.html * | ||
* * | ||
* The TYPO3 project - inspiring people to share! * | ||
* */ | ||
|
||
/** | ||
* Exception thrown by the write methods of Node and Property and by | ||
* Session#save and Session#refresh if an attempted change would conflict with a | ||
* change to the persistent workspace made through another Session. Also thrown | ||
* by methods of Node and Property if that object represents an item that has | ||
* been removed from the workspace. | ||
* | ||
* @version $Id$ | ||
* @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later | ||
* @license http://opensource.org/licenses/bsd-license.php Simplified BSD License | ||
* @api | ||
*/ | ||
class PHPCR_InvalidItemStateException extends PHPCR_RepositoryException { | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
declare(ENCODING = 'utf-8'); | ||
|
||
/* * | ||
* This script belongs to the FLOW3 package "PHPCR". * | ||
* * | ||
* It is free software; you can redistribute it and/or modify it under * | ||
* the terms of the GNU Lesser General Public License as published by the * | ||
* Free Software Foundation, either version 3 of the License, or (at your * | ||
* option) any later version. * | ||
* * | ||
* This script is distributed in the hope that it will be useful, but * | ||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- * | ||
* TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser * | ||
* General Public License for more details. * | ||
* * | ||
* You should have received a copy of the GNU Lesser General Public * | ||
* License along with the script. * | ||
* If not, see http://www.gnu.org/licenses/lgpl.html * | ||
* * | ||
* The TYPO3 project - inspiring people to share! * | ||
* */ | ||
|
||
/** | ||
* Exception thrown by Lifecycle management-related methods. | ||
* | ||
* @version $Id$ | ||
* @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later | ||
* @license http://opensource.org/licenses/bsd-license.php Simplified BSD License | ||
* @api | ||
*/ | ||
class PHPCR_InvalidLifecycleTransitionException extends PHPCR_RepositoryException { | ||
} | ||
|
||
?> |
Oops, something went wrong.