Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zimbra
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lib
unicaen
zimbra
Commits
cb9aa44e
Commit
cb9aa44e
authored
10 years ago
by
David Surville
Browse files
Options
Downloads
Patches
Plain Diff
Modification du processus de suppression d'une adresse fonctionnelle
parent
e4177c40
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/UnicaenZimbra/Processus/BoiteGenerique.php
+28
-27
28 additions, 27 deletions
src/UnicaenZimbra/Processus/BoiteGenerique.php
with
28 additions
and
27 deletions
src/UnicaenZimbra/Processus/BoiteGenerique.php
+
28
−
27
View file @
cb9aa44e
...
...
@@ -70,7 +70,7 @@ class BoiteGenerique extends Processus
{
$afName
=
$this
->
getMailName
(
$adresseFonctionnelle
);
//
r
écupération des services
//
R
écupération des services
$accountService
=
$this
->
getServiceManager
()
->
get
(
'zimbraServiceAccount'
);
$distribListService
=
$this
->
getServiceManager
()
->
get
(
'zimbraServiceDistributionList'
);
$folderService
=
$this
->
getServiceManager
()
->
get
(
'zimbraServiceFolder'
);
...
...
@@ -121,24 +121,27 @@ class BoiteGenerique extends Processus
{
$afName
=
$this
->
getMailName
(
$adresseFonctionnelle
);
// récupération des services
$accountService
=
$this
->
getServiceManager
()
->
get
(
'zimbraServiceAccount'
);
$distribListService
=
$this
->
getServiceManager
()
->
get
(
'zimbraServiceDistributionList'
);
$folderService
=
$this
->
getServiceManager
()
->
get
(
'zimbraServiceFolder'
);
$filterService
=
$this
->
getServiceManager
()
->
get
(
'zimbraServiceFilter'
);
/
******
Travail sur la boite générique
******/
/
/
Travail sur la boite générique
$bg
=
$accountService
->
get
(
$mail
);
$folderService
->
setAccount
(
$bg
);
$filterService
->
setAccount
(
$bg
);
/* Alias */
$accountService
->
removeAlias
(
$bg
,
$adresseFonctionnelle
);
// Liste de distribution
$distribListService
->
delete
(
$distribListService
->
get
(
$adresseFonctionnelle
)
);
/
*
Répertoires
*/
/
/
Répertoires
$folderService
->
delete
(
$folderService
->
get
(
$afName
.
' | Réception'
));
$folderService
->
delete
(
$folderService
->
get
(
$afName
.
' | Envoi'
));
/
*
Filtres
*/
/
/
Filtres
$filterService
->
deleteInput
(
$afName
.
' | Réception'
);
return
$this
;
}
...
...
@@ -231,34 +234,32 @@ class BoiteGenerique extends Processus
{
$afName
=
$this
->
getMailName
(
$adresseFonctionnelle
);
$alias
Service
=
$this
->
getServiceManager
()
->
get
(
'zimbraService
Alias
'
);
$distribList
Service
=
$this
->
getServiceManager
()
->
get
(
'zimbraService
DistributionList
'
);
$accountService
=
$this
->
getServiceManager
()
->
get
(
'zimbraServiceAccount'
);
$folderService
=
$this
->
getServiceManager
()
->
get
(
'zimbraServiceFolder'
);
$filterService
=
$this
->
getServiceManager
()
->
get
(
'zimbraServiceFilter'
);
$identityService
=
$this
->
getServiceManager
()
->
get
(
'zimbraServiceIdentity'
);
$alias
=
$aliasService
->
get
(
$adresseFonctionnelle
);
/****** Travail sur la boite générique ******/
$bgAccount
=
$accountService
->
get
(
$alias
->
zimbraAliasTargetId
,
'id'
);
// Travail sur la boite générique
$bgAccount
=
$distribListService
->
getMembers
(
$adresseFonctionnelle
,
1
)[
0
];
$userAccount
=
$accountService
->
get
(
$userMail
);
$folderService
->
setAccount
(
$bgAccount
);
/
*
Suppression des partages
*/
/
/
Suppression des partages
$inputFolder
=
$folderService
->
get
(
$afName
.
' | Réception'
);
$sentFolder
=
$folderService
->
get
(
$afName
.
' | Envoi'
);
$folderService
->
revokeGrant
(
$inputFolder
,
$userAccount
)
->
revokeGrant
(
$sentFolder
,
$userAccount
);
/
******
Travail sur la boite utilisateur
******/
/
/
Travail sur la boite utilisateur
$filterService
->
setAccount
(
$userAccount
);
$identityService
->
setAccount
(
$userAccount
);
/
*
Filtres
*/
/
/
Filtres
$filterService
->
deleteOutput
(
$afName
.
' | Envoi'
);
/
*
Avatar
*/
/
/
Avatar
$identityService
->
delete
(
$identityService
->
get
(
$afName
)
);
return
$this
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment