????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.216.107 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/icad.astacus.se/sharepoint/vendor/vgrem/php-spo/src/SharePoint/ |
Upload File : |
<?php
/**
* This file was generated by phpSPO model generator 2019-11-16T17:57:50+00:00 16.0.19506.12022
*/
namespace Office365\SharePoint;
use Office365\Runtime\Actions\DeleteEntityQuery;
use Office365\Runtime\ClientObject;
use Office365\Runtime\ResourcePath;
use Office365\Runtime\ResourcePathServiceOperation;
/**
* Defines a
* single role definition,
* including a name, description, management properties, and a set of rights.
*/
class RoleDefinition extends ClientObject
{
/**
* @return $this
*/
public function deleteObject()
{
$qry = new DeleteEntityQuery($this);
$this->getContext()->addQuery($qry);
return $this;
}
/**
* Specifies
* the base permissions for the role definition.When
* assigning values to the property, use bitwise AND, OR, and XOR
* operators with values from the BasePermissions uint. It MUST NOT be NULL. Exceptions: Error CodeError Type NameCondition-1System.InvalidOperationExceptionSite (2) inherits
* permission levels from a parent site, and
* permission levels cannot be customized.
* @return BasePermissions
*/
public function getBasePermissions()
{
if (!$this->isPropertyAvailable("BasePermissions")) {
return null;
}
return $this->getProperty("BasePermissions");
}
/**
* Specifies
* the base permissions for the role definition.When
* assigning values to the property, use bitwise AND, OR, and XOR
* operators with values from the BasePermissions uint. It MUST NOT be NULL. Exceptions: Error CodeError Type NameCondition-1System.InvalidOperationExceptionSite (2) inherits
* permission levels from a parent site, and
* permission levels cannot be customized.
* @var BasePermissions
*/
public function setBasePermissions($value)
{
$this->setProperty("BasePermissions", $value, true);
}
/**
* Specifies
* the description of the role definition.Its length
* MUST be equal to or less than 512. Exceptions: Error CodeError Type NameCondition-1System.InvalidOperationExceptionSite (2) inherits
* permission levels from a parent site, and
* permission levels cannot be customized.
* @return string
*/
public function getDescription()
{
if (!$this->isPropertyAvailable("Description")) {
return null;
}
return $this->getProperty("Description");
}
/**
* Specifies
* the description of the role definition.Its length
* MUST be equal to or less than 512. Exceptions: Error CodeError Type NameCondition-1System.InvalidOperationExceptionSite (2) inherits
* permission levels from a parent site, and
* permission levels cannot be customized.
* @var string
*/
public function setDescription($value)
{
$this->setProperty("Description", $value, true);
}
/**
* Specifies
* whether the role definition is
* displayed.
* @return bool
*/
public function getHidden()
{
if (!$this->isPropertyAvailable("Hidden")) {
return null;
}
return $this->getProperty("Hidden");
}
/**
* Specifies
* the identifier of the role definition.Its value
* MUST be equal to or greater than 1073741824.
* @return integer
*/
public function getId()
{
if (!$this->isPropertyAvailable("Id")) {
return null;
}
return $this->getProperty("Id");
}
/**
* Specifies
* the role
* definition name.It MUST
* NOT be NULL. It MUST NOT be empty. Its length MUST be equal to or less than
* 255. MUST not contain any of the following characters:
* /\[]:|<>+=;,?*'"@Exceptions: Error CodeError Type NameCondition-1System.InvalidOperationExceptionRole definition is inherited from a parent
* site.
* @return string
*/
public function getName()
{
if (!$this->isPropertyAvailable("Name")) {
return null;
}
return $this->getProperty("Name");
}
/**
* Specifies
* the order position of the object (1) in the site
* collection Permission Levels page.Exceptions:
* Error CodeError Type NameCondition-1System.InvalidOperationExceptionThe user cannot customize permission levels in a site
* (2) with inherited permission levels.
* @return integer
*/
public function getOrder()
{
if (!$this->isPropertyAvailable("Order")) {
return null;
}
return $this->getProperty("Order");
}
/**
* Specifies
* the order position of the object (1) in the site
* collection Permission Levels page.Exceptions:
* Error CodeError Type NameCondition-1System.InvalidOperationExceptionThe user cannot customize permission levels in a site
* (2) with inherited permission levels.
* @var integer
*/
public function setOrder($value)
{
$this->setProperty("Order", $value, true);
}
/**
* Specifies
* the type of the role definition.Its value
* MUST be equal to or greater than 0. Its value MUST be equal to or less than 5.
* @return integer
*/
public function getRoleTypeKind()
{
if (!$this->isPropertyAvailable("RoleTypeKind")) {
return null;
}
return $this->getProperty("RoleTypeKind");
}
/**
* Specifies
* whether the role definition is
* displayed.
* @var bool
*/
public function setHidden($value)
{
$this->setProperty("Hidden", $value, true);
}
/**
* Specifies
* the identifier of the role definition.Its value
* MUST be equal to or greater than 1073741824.
* @var integer
*/
public function setId($value)
{
$this->setProperty("Id", $value, true);
}
/**
* Specifies
* the role
* definition name.It MUST
* NOT be NULL. It MUST NOT be empty. Its length MUST be equal to or less than
* 255. MUST not contain any of the following characters:
* /\[]:|<>+=;,?*'"@Exceptions: Error CodeError Type NameCondition-1System.InvalidOperationExceptionRole definition is inherited from a parent
* site.
* @return RoleDefinition
* @var string
*/
public function setName($value)
{
return $this->setProperty("Name", $value, true);
}
/**
* Specifies
* the type of the role definition.Its value
* MUST be equal to or greater than 0. Its value MUST be equal to or less than 5.
* @return RoleDefinition
* @var integer
*/
public function setRoleTypeKind($value)
{
return $this->setProperty("RoleTypeKind", $value, true);
}
public function setProperty($name, $value, $persistChanges = true)
{
if($name == "Id" && is_null($this->resourcePath)){
$this->resourcePath = new ResourcePathServiceOperation(
"GetById",
array($value),
$this->parentCollection->getResourcePath());
}
return parent::setProperty($name, $value, $persistChanges);
}
}