-
Notifications
You must be signed in to change notification settings - Fork 11
added methods for CardDAV-implementation #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
lduer
wants to merge
31
commits into
secotrust:master
Choose a base branch
from
lduer:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
083dcbb
updated auth-backend
lduer 371d5ff
Updated plugin- & base-config; modified route
lduer c81f0d6
Added principal-backend
lduer 4dfb80e
Added CardDAV & CalDAV-Backends
lduer b40b1bc
removed empty parameter; simpler check for existing vars
lduer b573ac8
replace request_stack by request
lduer 8a2ca23
implemented sabre-dav 2.*; optimized php-interfaces; added BasicAuth …
lduer b53bb0c
updated plugin-config for carddav & principal
lduer 3343684
added acl-plugin to configure the DAVACL in the security-manager exte…
lduer 5556c5a
added browser-plugin class
lduer b4a164d
updated principal membership; updated controller & parameter setting;
lduer 970d639
updated FOSUserBundle-Version
lduer 1bf48da
bugfix: throw exception only if principal is not found!
lduer 1c17e62
implementation of sabre/dav 3.0 changes
lduer 0cd24bb
improvements in php-vdocs & -code
lduer 56f4c9f
updated code with "PHP Coding Standards Fixer"; added php_cs config
lduer 10e12c1
Add basic config description
bartv2 68207c2
Replace deprecated 'pattern' in routing.xml
bartv2 c9d4c49
Change secotrust.sabredav.caldav_collection.class to new name
bartv2 d1afe0b
Update CalDavBackend to new version
bartv2 3e0fd51
Fix indent
bartv2 0cbcddf
Document using principal backend
bartv2 452e2fd
Use UserManager to find all users
bartv2 ae9ca0b
Merge pull request #1 from bartv2/master
lduer 1203774
removed unused event-dispatcher
lduer 5999766
updated code-style (removed tab-characters); removed unused vars
lduer 5fff3fa
updated base_uri configuration for symfony router-base
lduer ef9eb3f
added client list to docs
lduer 751cc30
updated to psr-4
lduer cdc21b8
updated sabre/dav version requirement
lduer 1958b89
Update symfony framework version requirement
lduer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,80 @@ | ||
| <?php | ||
|
|
||
| namespace Secotrust\Bundle\SabreDavBundle\Entity; | ||
|
|
||
| use Doctrine\ORM\Mapping as ORM; | ||
|
|
||
| /** | ||
| * Description of AddressbookInterface | ||
| * | ||
| * @author lduer | ||
| */ | ||
| interface AddressbookInterface { | ||
|
|
||
| /** | ||
| * Get id | ||
| * | ||
| * @return integer | ||
| */ | ||
| public function getId(); | ||
|
|
||
| /** | ||
| * Get label | ||
| * | ||
| * @return string | ||
| */ | ||
| public function getLabel(); | ||
|
|
||
| /** | ||
| * Set label | ||
| * | ||
| * @param string $label | ||
| * @return $this | ||
| */ | ||
| public function setLabel($label); | ||
|
|
||
| /** | ||
| * Get description | ||
| * | ||
| * @return string | ||
| */ | ||
| public function getDescription(); | ||
|
|
||
| /** | ||
| * Set description | ||
| * | ||
| * @param string $label | ||
| * @return $this | ||
| */ | ||
| public function setDescription($description); | ||
|
|
||
| /** | ||
| * Get the value of the current CTag | ||
| * | ||
| * @return string | ||
| */ | ||
| public function getCtag(); | ||
|
|
||
| /** | ||
| * updates the cTag of the current Group | ||
| * | ||
| * @return $this | ||
| */ | ||
| public function updateCTag(); | ||
|
|
||
| /** | ||
| * get the Uri | ||
| * | ||
| * @return type | ||
| */ | ||
| public function getUri(); | ||
|
|
||
|
|
||
| /** | ||
| * Get all Contacts for current Addressbook | ||
| * | ||
| * @return array | ||
| */ | ||
| public function getContactList(); | ||
|
|
||
| } |
This file contains hidden or 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,90 @@ | ||
| <?php | ||
|
|
||
| namespace Secotrust\Bundle\SabreDavBundle\Entity; | ||
|
|
||
| use Doctrine\ORM\Mapping as ORM; | ||
|
|
||
| /** | ||
| * Description of CardInterface | ||
| * | ||
| * Interface for single Contact-Entity in CardDAV | ||
| * | ||
| * use prePersist()-Action (Doctrine-Call) to call "updateCTag()" and "updateLastmodified()" actions automatically | ||
| * | ||
| * @author lduer | ||
| */ | ||
| interface CardInterface { | ||
|
|
||
| /** | ||
| * Get id | ||
| * | ||
| * @return integer | ||
| */ | ||
| public function getId(); | ||
|
|
||
| /** | ||
| * Get vCardUid | ||
| * | ||
| * @return string | ||
| */ | ||
| public function getVCardUid(); | ||
|
|
||
| /** | ||
| * Set vCardUid | ||
| * | ||
| * @param string $vCardUid | ||
| * @return Contact | ||
| */ | ||
| public function setVCardUid($vCardUid); | ||
|
|
||
| /** | ||
| * get the vCard | ||
| * | ||
| * @return string | ||
| */ | ||
| public function getVCard(); | ||
|
|
||
| /** | ||
| * updates the current vCard | ||
| * | ||
| * @return $this | ||
| */ | ||
| public function setVCard($vCard); | ||
|
|
||
| /** | ||
| * get lastmodified-date of the current card | ||
| * | ||
| * @return \DateTime() | ||
| */ | ||
| public function getLastmodified(); | ||
|
|
||
| /** | ||
| * updates the lastmodified-date of the current Card | ||
| * | ||
| * @return $this | ||
| */ | ||
| public function updateLastmodified(); | ||
|
|
||
| /** | ||
| * Get the value of the current CTag | ||
| * | ||
| * @return string | ||
| */ | ||
| public function getCTag(); | ||
|
|
||
| /** | ||
| * updates the cTag of the current Card | ||
| * | ||
| * @return $this | ||
| */ | ||
| public function updateCTag(); | ||
|
|
||
| /** | ||
| * get ETag of current Card | ||
| * | ||
| * possible method: return md5-checksum of vCard-String | ||
| * return md5($this->getVCard()); | ||
| */ | ||
| public function getETag(); | ||
|
|
||
| } |
This file contains hidden or 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,41 @@ | ||
| <?php | ||
|
|
||
| namespace Secotrust\Bundle\SabreDavBundle\Entity; | ||
|
|
||
| use Doctrine\ORM\Mapping as ORM; | ||
|
|
||
| /** | ||
| * Description of PrincipalInterface | ||
| * | ||
| * @author lduer | ||
| */ | ||
| interface PrincipalInterface { | ||
|
|
||
| /** | ||
| * Get id | ||
| * | ||
| * @return integer | ||
| */ | ||
| public function getId(); | ||
|
|
||
| /** | ||
| * get username | ||
| * | ||
| * @return string | ||
| */ | ||
| public function getUsername(); | ||
|
|
||
| /** | ||
| * get Email | ||
| * | ||
| * @return string | ||
| */ | ||
| public function getEmail(); | ||
|
|
||
| /** | ||
| * requried to define me-card as a property on the users' addressbook' | ||
| * | ||
| * @return string | ||
| */ | ||
| public function getVCardUrl(); | ||
| } |
This file contains hidden or 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,20 @@ | ||
| <?php | ||
|
|
||
| namespace Secotrust\Bundle\SabreDavBundle\Entity\Repository; | ||
|
|
||
| /** | ||
| * Description of AddressbookRepositoryInterface | ||
| * | ||
| * @author lduer | ||
| */ | ||
| interface AddressbookRepositoryInterface { | ||
|
|
||
| /** | ||
| * get all Addressbooks for submitted principal | ||
| * | ||
| * @param type $principalUri | ||
| * @return array | ||
| */ | ||
| public function findAllPrincipalAddressbooks($principalUri); | ||
|
|
||
| } |
This file contains hidden or 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,25 @@ | ||
| <?php | ||
|
|
||
| namespace Secotrust\Bundle\SabreDavBundle\Entity\Repository; | ||
|
|
||
| /** | ||
| * Description of CardRepositoryInterface | ||
| * | ||
| * @author lduer | ||
| */ | ||
| interface CardRepositoryInterface { | ||
|
|
||
| /** | ||
| * Find one Card By vCard UID | ||
| * | ||
| * @param type $uid | ||
| */ | ||
| public function findSingleCardByUid($uid=null); | ||
|
|
||
| /** | ||
| * delete Card by cardUri | ||
| * | ||
| * @param type $cardUri | ||
| */ | ||
| public function deleteCard($cardUri); | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be changed to
if (!empty($config['root_dir']) && $config['plugins']['webdav']) {.