|
@@ 700-709 (lines=10) @@
|
| 697 |
|
* @return ObjectTypeInterface the new type definition |
| 698 |
|
* @throws CmisNotSupportedException If repository version 1.0 |
| 699 |
|
*/ |
| 700 |
|
public function createType(TypeDefinitionInterface $type) |
| 701 |
|
{ |
| 702 |
|
if ($this->getRepositoryInfo()->getCmisVersion() == CmisVersion::cast(CmisVersion::CMIS_1_0)) { |
| 703 |
|
throw new CmisNotSupportedException('This method is not supported for CMIS 1.0 repositories.'); |
| 704 |
|
} |
| 705 |
|
|
| 706 |
|
return $this->convertTypeDefinition( |
| 707 |
|
$this->getBinding()->getRepositoryService()->createType($this->getRepositoryInfo()->getId(), $type) |
| 708 |
|
); |
| 709 |
|
} |
| 710 |
|
|
| 711 |
|
/** |
| 712 |
|
* Deletes an object and, if it is a document, all versions in the version series. |
|
@@ 734-742 (lines=9) @@
|
| 731 |
|
* @param string $typeId the ID of the type to delete |
| 732 |
|
* @throws CmisNotSupportedException If repository version 1.0 |
| 733 |
|
*/ |
| 734 |
|
public function deleteType($typeId) |
| 735 |
|
{ |
| 736 |
|
if ($this->getRepositoryInfo()->getCmisVersion() == CmisVersion::cast(CmisVersion::CMIS_1_0)) { |
| 737 |
|
throw new CmisNotSupportedException('This method is not supported for CMIS 1.0 repositories.'); |
| 738 |
|
} |
| 739 |
|
|
| 740 |
|
$this->getBinding()->getRepositoryService()->deleteType($this->getRepositoryId(), $typeId); |
| 741 |
|
$this->removeObjectFromCache($this->createObjectId($typeId)); |
| 742 |
|
} |
| 743 |
|
|
| 744 |
|
/** |
| 745 |
|
* Fetches the ACL of an object from the repository. |