1: <?php
2: /**
3: * This basic interface for a resource owner.
4: *
5: * PHP version 5
6: *
7: * @category Kolab
8: * @package Kolab_FreeBusy
9: * @author Gunnar Wrobel <wrobel@pardus.de>
10: * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
11: * @link http://pear.horde.org/index.php?package=Kolab_FreeBusy
12: */
13:
14: /**
15: * This basic interface for a resource owner.
16: *
17: * Copyright 2010-2012 Horde LLC (http://www.horde.org/)
18: *
19: * See the enclosed file COPYING for license information (LGPL). If you did not
20: * receive this file, see
21: * http://www.horde.org/licenses/lgpl21.
22: *
23: * @category Kolab
24: * @package Kolab_FreeBusy
25: * @author Gunnar Wrobel <wrobel@pardus.de>
26: * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
27: * @link http://pear.horde.org/index.php?package=Kolab_FreeBusy
28: */
29: interface Horde_Kolab_FreeBusy_Owner
30: {
31: /**
32: * Is the user known in the user database?
33: *
34: * @return boolean True if the user data is present.
35: */
36: public function isKnown();
37:
38: /**
39: * Return the original owner parameter.
40: *
41: * @return string The original owner parameter.
42: */
43: public function getOwner();
44:
45: /**
46: * Return the primary id of the resource owner.
47: *
48: * @return string The primary id.
49: */
50: public function getPrimaryId();
51:
52: /**
53: * Return the mail address of the resource owner.
54: *
55: * @return string The mail address.
56: */
57: public function getMail();
58:
59: /**
60: * Return the name of the resource owner.
61: *
62: * @return string The name of the owner.
63: */
64: public function getName();
65:
66: /**
67: * Indicates the correct remote server for the resource owner.
68: *
69: * @param string $type The requested resource type.
70: *
71: * @return string The server name.
72: */
73: public function getRemoteServer($type = '');
74: }