Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
fusiondirectory-plugins
Commits
94067be2
Verified
Commit
94067be2
authored
6 years ago
by
Côme Chilliet
2
Browse files
Options
Download
Patches
Plain Diff
feat(supann) Migrate to management and activate templates
issue #5880
parent
70d78c60
dev
6104-mail-methods-refactor
6231-give-the-ability-to-the-webservice-to-notice-if-an-attribute-is-monovalued-or-multivalued
6237-add-requiredattrs-array-to-the-webservice-informations
6245-adapt-the-ci-to-the-reorganisation-of-the-dev-tools-and-fixing-the-trigger-downstream-pipelines
6250-supann-configuration-backend-requires-account-life-cycle-section
6280-plugins-update-plugins-to-take-into-consideration-the-new-directory-of-core-structure
6310-tasks-reminder-error-in-the-schema-duplicate-attribute-id
6311-put-the-version-1-5-in-all-yaml-for-fusiondirectory-1-5
6322-template-issue-when-creating-a-template-with-empty-password-error-message-should-not-be-seen-2
6332-zimbra-allows-update-of-data-for-unknown-domain-name-for-specific-individual-aliases
6337-webservice-issue-with-archiving-post-request-not-responding-but-successfully-archiving-user
6341-supann-extract-resources-states-sub-states-from-backend-configuration-to-their-own-objects
master
fusiondirectory-1.5
fusiondirectory-1.4
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
supann/admin/supannStructures/class_entite.inc
+1
-0
supann/admin/supannStructures/class_entite.inc
supann/admin/supannStructures/class_etablissement.inc
+1
-0
supann/admin/supannStructures/class_etablissement.inc
supann/admin/supannStructures/class_supannStructuresManagement.inc
+14
-32
...min/supannStructures/class_supannStructuresManagement.inc
with
16 additions
and
32 deletions
+16
-32
supann/admin/supannStructures/class_entite.inc
+
1
−
0
View file @
94067be2
...
@@ -33,6 +33,7 @@ class entite extends simplePlugin
...
@@ -33,6 +33,7 @@ class entite extends simplePlugin
'icon'
=>
'geticon.php?context=applications&icon=supann-entite&size=16'
,
'icon'
=>
'geticon.php?context=applications&icon=supann-entite&size=16'
,
'nameAttr'
=>
'ou'
,
'nameAttr'
=>
'ou'
,
)),
)),
'plSearchAttrs'
=>
array
(
'description'
,
'supannCodeEntiteParent'
),
'plProvidedAcls'
=>
parent
::
generatePlProvidedAcls
(
static
::
getAttributesInfo
())
'plProvidedAcls'
=>
parent
::
generatePlProvidedAcls
(
static
::
getAttributesInfo
())
);
);
...
...
This diff is collapsed.
Click to expand it.
supann/admin/supannStructures/class_etablissement.inc
+
1
−
0
View file @
94067be2
...
@@ -34,6 +34,7 @@ class etablissement extends simplePlugin
...
@@ -34,6 +34,7 @@ class etablissement extends simplePlugin
'icon'
=>
'geticon.php?context=applications&icon=supann-etablissement&size=16'
,
'icon'
=>
'geticon.php?context=applications&icon=supann-etablissement&size=16'
,
'nameAttr'
=>
'o'
,
'nameAttr'
=>
'o'
,
)),
)),
'plSearchAttrs'
=>
array
(
'description'
,
'supannEtablissement'
,
'eduOrgLegalName'
),
'plProvidedAcls'
=>
parent
::
generatePlProvidedAcls
(
static
::
getAttributesInfo
())
'plProvidedAcls'
=>
parent
::
generatePlProvidedAcls
(
static
::
getAttributesInfo
())
);
);
...
...
This diff is collapsed.
Click to expand it.
supann/admin/supannStructures/class_supannStructuresManagement.inc
+
14
−
32
View file @
94067be2
<?php
<?php
/*
/*
This code is part of FusionDirectory (http://www.fusiondirectory.org/)
This code is part of FusionDirectory (http://www.fusiondirectory.org/)
Copyright (C) 2012-201
6
FusionDirectory
Copyright (C) 2012-201
8
FusionDirectory
This program is free software; you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU General Public License as published by
...
@@ -18,17 +18,19 @@
...
@@ -18,17 +18,19 @@
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/
*/
class
supannStructuresManagement
extends
simpleM
anagement
class
supannStructuresManagement
extends
m
anagement
{
{
p
rotected
$objectTypes
=
array
(
'etablissement'
,
'entite'
)
;
p
ublic
static
$skipTemplates
=
FALSE
;
protected
$autoFilterAttributes
=
array
(
'dn'
,
'ou'
,
'o'
,
'description'
,
'supannCodeEntite'
,
'supannCodeEntiteParent'
);
public
static
$columns
=
array
(
array
(
'ObjectTypeColumn'
,
array
()),
array
(
'LinkColumn'
,
array
(
'attributes'
=>
'nameAttr'
,
'label'
=>
'Name'
)),
array
(
'LinkColumn'
,
array
(
'attributes'
=>
'supannCodeEntite'
,
'label'
=>
'supannCodeEntite'
)),
array
(
'LinkColumn'
,
array
(
'attributes'
=>
'supannCodeEntiteParent'
,
'label'
=>
'Parent'
)),
array
(
'LinkColumn'
,
array
(
'attributes'
=>
'description'
,
'label'
=>
'Description'
)),
array
(
'ActionsColumn'
,
array
(
'label'
=>
'Actions'
)),
);
protected
$departmentBrowser
=
FALSE
;
protected
$departmentRootVisible
=
FALSE
;
protected
$baseMode
=
FALSE
;
/* Return plugin information for acl handling */
static
function
plInfo
()
static
function
plInfo
()
{
{
return
array
(
return
array
(
...
@@ -43,29 +45,9 @@ class supannStructuresManagement extends simpleManagement
...
@@ -43,29 +45,9 @@ class supannStructuresManagement extends simpleManagement
);
);
}
}
function
parseXML
(
$file
)
protected
function
setUpListing
(
)
{
{
$data
=
parent
::
parseXML
(
$file
);
/* Set baseMode to FALSE */
$data
[
'list'
][
'table'
][
'layout'
]
=
'|20px;c|||||150px;r|'
;
$this
->
listing
=
new
managementListing
(
$this
,
FALSE
);
$columns
=
array
(
array
(
'label'
=>
'supannCodeEntite'
,
'sortAttribute'
=>
'supannCodeEntite'
,
'sortType'
=>
'string'
,
'value'
=>
'%{filter:link(row,dn,"%s",supannCodeEntite)}'
,
'export'
=>
'true'
,
),
array
(
'label'
=>
'supannCodeEntiteParent'
,
'sortAttribute'
=>
'supannCodeEntiteParent'
,
'sortType'
=>
'string'
,
'value'
=>
'%{filter:link(row,dn,"%s",supannCodeEntiteParent)}'
,
'export'
=>
'true'
,
),
);
array_splice
(
$data
[
'list'
][
'table'
][
'column'
],
2
,
0
,
$columns
);
return
$data
;
}
}
}
}
?>
This diff is collapsed.
Click to expand it.
Côme Chilliet
@cchilliet
mentioned in commit
f8d15116
·
6 years ago
mentioned in commit
f8d15116
mentioned in commit f8d15116907d0b466e9602cc6c1dc8a8e736dd80
Toggle commit list
Write
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets