Verified Commit fa731d18 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

🚑 fix(supann) Fix SupAnn case to be consistent

issue #5872
parent 98ad5e21
......@@ -24,10 +24,10 @@ class entite extends simplePlugin
{
return array(
'plShortName' => _('Entity'),
'plDescription' => _('SUPANN Entity Settings'),
'plDescription' => _('SupAnn Entity Settings'),
'plObjectClass' => array('supannEntite','organizationalUnit'),
'plObjectType' => array('entite' => array(
'name' => _('SUPANN Entity'),
'name' => _('SupAnn Entity'),
'ou' => get_ou('supannStructuresRDN'),
'mainAttr' => 'supannCodeEntite',
'icon' => 'geticon.php?context=applications&icon=supann-entite&size=16',
......@@ -73,14 +73,14 @@ class entite extends simplePlugin
)
),
'supann' => array(
'name' => _('SUPANN information'),
'name' => _('SupAnn information'),
'attrs' => array(
new SupannPrefixedSelectAttribute(
_('Entity type'), _('The SUPANN type that best fits this entity'),
_('Entity type'), _('The SupAnn type that best fits this entity'),
'supannTypeEntite', FALSE, 'entite'
),
new StringAttribute(
_('Entity code'), _('The SUPANN code of this entity'),
_('Entity code'), _('The SupAnn code of this entity'),
'supannCodeEntite', TRUE,
'', '', '/^[a-z0-9_-]*$/i'
),
......
......@@ -24,11 +24,11 @@ class etablissement extends simplePlugin
{
return array(
'plShortName' => _('Establishment'),
'plDescription' => _('SUPANN Establishment Settings'),
'plDescription' => _('SupAnn Establishment Settings'),
'plObjectClass' => array('supannEntite','organization','supannOrg','eduOrg'),
'plFilter' => '(&(objectClass=supannEntite)(objectClass=organization))',
'plObjectType' => array('etablissement' => array(
'name' => _('SUPANN Establishment'),
'name' => _('SupAnn Establishment'),
'ou' => get_ou('supannStructuresRDN'),
'mainAttr' => 'supannCodeEntite',
'icon' => 'geticon.php?context=applications&icon=supann-etablissement&size=16',
......@@ -82,7 +82,7 @@ class etablissement extends simplePlugin
)
),
'supann' => array(
'name' => _('SUPANN properties'),
'name' => _('SupAnn properties'),
'attrs' => array(
new StringAttribute(
_('Establishment code'), _('The code of this establishment (must have a prefix between {})'),
......@@ -90,7 +90,7 @@ class etablissement extends simplePlugin
'', '', '/^{[^}]+}.*$/'
),
new StringAttribute(
_('SUPANN code'), _('The SUPANN code for this establishment'),
_('SupAnn code'), _('The SupAnn code for this establishment'),
'supannCodeEntite', TRUE,
'', '', '/^[a-z0-9_-]*$/i'
),
......
......@@ -32,8 +32,8 @@ class supannStructuresManagement extends simpleManagement
static function plInfo()
{
return array(
'plShortName' => _('Supann structures'),
'plDescription' => _('Supann structures management'),
'plShortName' => _('SupAnn structures'),
'plDescription' => _('SupAnn structures management'),
'plIcon' => 'geticon.php?context=applications&icon=supann&size=48',
'plSection' => 'accounts',
'plPriority' => 40,
......
......@@ -23,8 +23,8 @@ class supannConfig extends simplePlugin
static function plInfo()
{
return array(
'plShortName' => _('SUPANN configuration'),
'plDescription' => _('FusionDirectory SUPANN plugin configuration'),
'plShortName' => _('SupAnn configuration'),
'plDescription' => _('FusionDirectory SupAnn plugin configuration'),
'plObjectClass' => array('fdSupannPluginConf'),
'plCategory' => array('configuration'),
'plObjectType' => array('smallConfig'),
......@@ -37,15 +37,15 @@ class supannConfig extends simplePlugin
{
return array(
'main' => array(
'name' => _('SUPANN'),
'name' => _('SupAnn'),
'attrs' => array(
new StringAttribute (
_('SUPANN RDN'), _('Branch in which SUPANN structures will be stored'),
_('SupAnn RDN'), _('Branch in which SupAnn structures will be stored'),
'fdSupannStructuresRDN', TRUE,
'ou=structures'
),
new BooleanAttribute (
_('SUPANN mail for recovery'), _('Allow the use of mail addresses from the personal mail address field from SUPANN account for password recovery'),
_('SupAnn mail for recovery'), _('Allow the use of mail addresses from the personal mail address field from SupAnn account for password recovery'),
'fdSupannPasswordRecovery', FALSE,
TRUE
),
......
##
## supann-fd.schema - Needed by Fusion Directory for managing SUPANN
## supann-fd.schema - Needed by Fusion Directory for managing SupAnn
##
# Attributes
attributetype ( 1.3.6.1.4.1.38414.17.1.1 NAME 'fdSupannStructuresRDN'
DESC 'FusionDirectory - SUPANN structures RDN'
DESC 'FusionDirectory - SupAnn structures RDN'
EQUALITY caseExactIA5Match
SUBSTR caseExactIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE)
attributetype ( 1.3.6.1.4.1.38414.17.1.2 NAME 'fdSupannPasswordRecovery'
DESC 'FusionDirectory - SUPANN allow supann mail in password recovery'
DESC 'FusionDirectory - SupAnn allow supann mail in password recovery'
EQUALITY booleanMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
SINGLE-VALUE )
# Object Class
objectclass ( 1.3.6.1.4.1.38414.17.2.1 NAME 'fdSupannPluginConf'
DESC 'FusionDirectory supann plugin configuration'
DESC 'FusionDirectory SupAnn plugin configuration'
SUP top AUXILIARY
MUST ( cn )
MAY ( fdSupannStructuresRDN $ fdSupannPasswordRecovery ) )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment