Files
Phraseanet/lib/Alchemy/Phrasea/Model/Entities/FtpCredential.php
Nicolas Le Goff 26bd977d5f Delete references to usr.usr_id field in entities
Conflicts:
	lib/Alchemy/Phrasea/Controller/Prod/Push.php
	lib/Alchemy/Phrasea/Controller/Prod/UsrLists.php
	lib/conf.d/migrations.yml

Conflicts:
	lib/Alchemy/Phrasea/ACL/BasketACL.php
	lib/Alchemy/Phrasea/Authentication/Authenticator.php
	lib/Alchemy/Phrasea/Controller/Prod/Order.php
	lib/Alchemy/Phrasea/Controller/Prod/UsrLists.php
	lib/Alchemy/Phrasea/Controller/Root/RSSFeeds.php
	lib/Alchemy/Phrasea/Controller/Root/Session.php
	lib/Alchemy/Phrasea/Model/Entities/Basket.php
	lib/Alchemy/Phrasea/Model/Entities/BasketElement.php
	lib/Alchemy/Phrasea/Model/Entities/Feed.php
	lib/Alchemy/Phrasea/Model/Entities/FeedEntry.php
	lib/Alchemy/Phrasea/Model/Entities/FtpExport.php
	lib/Alchemy/Phrasea/Model/Entities/Session.php
	lib/Alchemy/Phrasea/Model/Entities/StoryWZ.php
	lib/Alchemy/Phrasea/Model/Entities/UsrList.php
	lib/Alchemy/Phrasea/Model/Entities/UsrListEntry.php
	lib/Alchemy/Phrasea/Model/Entities/UsrListOwner.php
	lib/Alchemy/Phrasea/Model/Entities/ValidationParticipant.php
	lib/Alchemy/Phrasea/Model/Entities/ValidationSession.php
	lib/Alchemy/Phrasea/Model/Repositories/StoryWZRepository.php
	lib/classes/API/V1/adapter.php
	templates/mobile/lightbox/sc_note.html.twig
	templates/web/admin/connected-users.html.twig
	templates/web/admin/publications/fiche.html.twig
	templates/web/lightbox/IE6/agreement_box.html.twig
	templates/web/lightbox/agreement_box.html.twig
	templates/web/lightbox/basket_content_report.html.twig
	templates/web/lightbox/sc_note.html.twig
	templates/web/prod/WorkZone/Browser/Basket.html.twig
	templates/web/prod/WorkZone/Browser/Results.html.twig
	templates/web/prod/WorkZone/Macros.html.twig
	templates/web/prod/actions/Feedback/List-Share.html.twig
	templates/web/prod/actions/Feedback/ListsMacros.html.twig
	templates/web/prod/orders/order_box.html.twig
	templates/web/prod/orders/order_item.html.twig
	templates/web/prod/upload/lazaret.html.twig
	tests/Alchemy/Tests/Phrasea/Controller/Root/SessionTest.php
2014-02-19 17:29:25 +01:00

315 lines
5.3 KiB
PHP

<?php
/*
* This file is part of Phraseanet
*
* (c) 2005-2014 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Alchemy\Phrasea\Model\Entities;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* @ORM\Table(name="FtpCredential")
* @ORM\Entity(repositoryClass="Alchemy\Phrasea\Model\Repositories\FtpCredentialRepository")
*/
class FtpCredential
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue
*/
private $id;
/**
* @ORM\OneToOne(targetEntity="User", inversedBy="ftpCredential")
* @ORM\JoinColumn(name="user_id", referencedColumnName="id")
**/
private $user;
/**
* @ORM\Column(type="boolean")
*/
private $active = false;
/**
* @ORM\Column(type="string", length=128)
*/
private $address = '';
/**
* @ORM\Column(type="string", length=128)
*/
private $login = '';
/**
* @ORM\Column(type="string", length=128)
*/
private $password = '';
/**
* @ORM\Column(type="string", length=128, name="reception_folder")
*/
private $receptionFolder = '';
/**
* @ORM\Column(type="string", length=128, name="repository_prefix_name")
*/
private $repositoryPrefixName = '';
/**
* @ORM\Column(type="boolean")
*/
private $passive = false;
/**
* @ORM\Column(type="boolean", name="tls")
*/
private $ssl = false;
/**
* @ORM\Column(type="integer", name="max_retry")
*/
private $maxRetry = 5;
/**
* @Gedmo\Timestampable(on="update")
* @ORM\Column(type="datetime")
*/
private $updated;
/**
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* @return User
*/
public function getUser()
{
return $this->user;
}
/**
* @param User $user
*
* @return FtpCredential
*/
public function setUser(User $user)
{
$this->user = $user;
return $this;
}
/**
* @return boolean
*/
public function isActive()
{
return $this->active;
}
/**
* @param boolean $active
*
* @return FtpCredential
*/
public function setActive($active)
{
$this->active = (Boolean) $active;
return $this;
}
/**
* @return string
*/
public function getAddress()
{
return $this->address;
}
/**
* @param string $address
*
* @return FtpCredential
*/
public function setAddress($address)
{
$this->address = $address;
return $this;
}
/**
* @return string
*/
public function getLogin()
{
return $this->login;
}
/**
* @param string $login
*
* @return FtpCredential
*/
public function setLogin($login)
{
$this->login = $login;
return $this;
}
/**
* @return string
*/
public function getPassword()
{
return $this->password;
}
/**
* @param string $password
*
* @return FtpCredential
*/
public function setPassword($password)
{
$this->password = $password;
return $this;
}
/**
* @return string
*/
public function getReceptionFolder()
{
return $this->receptionFolder;
}
/**
* @param string $receptionFolder
*
* @return FtpCredential
*/
public function setReceptionFolder($receptionFolder)
{
$this->receptionFolder = $receptionFolder;
return $this;
}
/**
* @return string
*/
public function getRepositoryPrefixName()
{
return $this->repositoryPrefixName;
}
/**
* @param string $repositoryPrefixName
*
* @return FtpCredential
*/
public function setRepositoryPrefixName($repositoryPrefixName)
{
$this->repositoryPrefixName = $repositoryPrefixName;
return $this;
}
/**
* @return boolean
*/
public function isPassive()
{
return $this->passive;
}
/**
* @param string $passive
*
* @return FtpCredential
*/
public function setPassive($passive)
{
$this->passive = (Boolean) $passive;
return $this;
}
/**
* @return boolean
*/
public function isSsl()
{
return $this->ssl;
}
/**
* @param string $ssl
*
* @return FtpCredential
*/
public function setSsl($ssl)
{
$this->ssl = (Boolean) $ssl;
return $this;
}
/**
* @return integer
*/
public function getMaxRetry()
{
return $this->maxRetry;
}
/**
* @param string $maxRetry
*
* @return FtpCredential
*/
public function setMaxRetry($maxRetry)
{
$this->maxRetry = $maxRetry;
return $this;
}
/**
* @return \Datetime
*/
public function getUpdated()
{
return $this->updated;
}
/**
* @param \DateTime $updated
*
* @return FtpCredential
*/
public function setUpdated(\DateTime $updated)
{
$this->updated = $updated;
return $this;
}
}