Skip to content

Commit 514b2f6

Browse files
ZCS-20037 : Addition of LDAP attributes.
1 parent d120bf2 commit 514b2f6

5 files changed

Lines changed: 545 additions & 0 deletions

File tree

common/src/java/com/zimbra/common/account/ZAttrProvisioning.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12958,6 +12958,30 @@ public static TwoFactorAuthSecretEncoding fromString(String s) throws ServiceExc
1295812958
@ZAttr(id=1169)
1295912959
public static final String A_zimbraMyoneloginSamlSigningCert = "zimbraMyoneloginSamlSigningCert";
1296012960

12961+
/**
12962+
* Number of days for which data should be retained in mobile device.
12963+
*
12964+
* @since ZCS 10.1.22
12965+
*/
12966+
@ZAttr(id=7170)
12967+
public static final String A_zimbraNativeMobileAppLocalDataRetentionDays = "zimbraNativeMobileAppLocalDataRetentionDays";
12968+
12969+
/**
12970+
* Maximum stored data in mobile device.
12971+
*
12972+
* @since ZCS 10.1.22
12973+
*/
12974+
@ZAttr(id=7171)
12975+
public static final String A_zimbraNativeMobileAppMaxLocalDataSize = "zimbraNativeMobileAppMaxLocalDataSize";
12976+
12977+
/**
12978+
* Minimum mobile app version required.
12979+
*
12980+
* @since ZCS 10.1.22
12981+
*/
12982+
@ZAttr(id=7172)
12983+
public static final String A_zimbraNativeMobileAppMinVersionSupported = "zimbraNativeMobileAppMinVersionSupported";
12984+
1296112985
/**
1296212986
* Deprecated since: 10.1.0. deprecated in favor for new realtime license
1296312987
* attributes. Orig desc: A signed activation key that authorizes this

store/conf/attrs/zimbra-attrs.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10644,4 +10644,21 @@ TODO: delete them permanently from here
1064410644
<desc>Soft quota limit percentage applied over zimbraMailQuota</desc>
1064510645
</attr>
1064610646

10647+
<attr id="7170" name="zimbraNativeMobileAppLocalDataRetentionDays" type="integer" cardinality="single" optionalIn="globalConfig,cos,account" flags="accountInfo,accountInherited" since="10.1.22">
10648+
<globalConfigValue>30</globalConfigValue>
10649+
<defaultCOSValue>30</defaultCOSValue>
10650+
<desc>Number of days for which data should be retained in mobile device.</desc>
10651+
</attr>
10652+
10653+
<attr id="7171" name="zimbraNativeMobileAppMaxLocalDataSize" type="integer" cardinality="single" optionalIn="globalConfig,cos,account" flags="accountInfo,accountInherited" since="10.1.22">
10654+
<globalConfigValue>10240</globalConfigValue>
10655+
<defaultCOSValue>10240</defaultCOSValue>
10656+
<desc>Maximum stored data in mobile device.</desc>
10657+
</attr>
10658+
10659+
<attr id="7172" name="zimbraNativeMobileAppMinVersionSupported" type="string" cardinality="single" optionalIn="globalConfig" flags="accountInfo" since="10.1.22">
10660+
<globalConfigValue>10.1.22</globalConfigValue>
10661+
<desc>Minimum mobile app version required.</desc>
10662+
</attr>
10663+
1064710664
</attrs>

store/src/java/com/zimbra/cs/account/ZAttrAccount.java

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38393,6 +38393,150 @@ public Map<String,Object> unsetMobileTombstoneEnabled(Map<String,Object> attrs)
3839338393
return attrs;
3839438394
}
3839538395

38396+
/**
38397+
* Number of days for which data should be retained in mobile device.
38398+
*
38399+
* @return zimbraNativeMobileAppLocalDataRetentionDays, or 30 if unset
38400+
*
38401+
* @since ZCS 10.1.22
38402+
*/
38403+
@ZAttr(id=7170)
38404+
public int getNativeMobileAppLocalDataRetentionDays() {
38405+
return getIntAttr(Provisioning.A_zimbraNativeMobileAppLocalDataRetentionDays, 30, true);
38406+
}
38407+
38408+
/**
38409+
* Number of days for which data should be retained in mobile device.
38410+
*
38411+
* @param zimbraNativeMobileAppLocalDataRetentionDays new value
38412+
* @throws com.zimbra.common.service.ServiceException if error during update
38413+
*
38414+
* @since ZCS 10.1.22
38415+
*/
38416+
@ZAttr(id=7170)
38417+
public void setNativeMobileAppLocalDataRetentionDays(int zimbraNativeMobileAppLocalDataRetentionDays) throws com.zimbra.common.service.ServiceException {
38418+
HashMap<String,Object> attrs = new HashMap<String,Object>();
38419+
attrs.put(Provisioning.A_zimbraNativeMobileAppLocalDataRetentionDays, Integer.toString(zimbraNativeMobileAppLocalDataRetentionDays));
38420+
getProvisioning().modifyAttrs(this, attrs);
38421+
}
38422+
38423+
/**
38424+
* Number of days for which data should be retained in mobile device.
38425+
*
38426+
* @param zimbraNativeMobileAppLocalDataRetentionDays new value
38427+
* @param attrs existing map to populate, or null to create a new map
38428+
* @return populated map to pass into Provisioning.modifyAttrs
38429+
*
38430+
* @since ZCS 10.1.22
38431+
*/
38432+
@ZAttr(id=7170)
38433+
public Map<String,Object> setNativeMobileAppLocalDataRetentionDays(int zimbraNativeMobileAppLocalDataRetentionDays, Map<String,Object> attrs) {
38434+
if (attrs == null) attrs = new HashMap<String,Object>();
38435+
attrs.put(Provisioning.A_zimbraNativeMobileAppLocalDataRetentionDays, Integer.toString(zimbraNativeMobileAppLocalDataRetentionDays));
38436+
return attrs;
38437+
}
38438+
38439+
/**
38440+
* Number of days for which data should be retained in mobile device.
38441+
*
38442+
* @throws com.zimbra.common.service.ServiceException if error during update
38443+
*
38444+
* @since ZCS 10.1.22
38445+
*/
38446+
@ZAttr(id=7170)
38447+
public void unsetNativeMobileAppLocalDataRetentionDays() throws com.zimbra.common.service.ServiceException {
38448+
HashMap<String,Object> attrs = new HashMap<String,Object>();
38449+
attrs.put(Provisioning.A_zimbraNativeMobileAppLocalDataRetentionDays, "");
38450+
getProvisioning().modifyAttrs(this, attrs);
38451+
}
38452+
38453+
/**
38454+
* Number of days for which data should be retained in mobile device.
38455+
*
38456+
* @param attrs existing map to populate, or null to create a new map
38457+
* @return populated map to pass into Provisioning.modifyAttrs
38458+
*
38459+
* @since ZCS 10.1.22
38460+
*/
38461+
@ZAttr(id=7170)
38462+
public Map<String,Object> unsetNativeMobileAppLocalDataRetentionDays(Map<String,Object> attrs) {
38463+
if (attrs == null) attrs = new HashMap<String,Object>();
38464+
attrs.put(Provisioning.A_zimbraNativeMobileAppLocalDataRetentionDays, "");
38465+
return attrs;
38466+
}
38467+
38468+
/**
38469+
* Maximum stored data in mobile device.
38470+
*
38471+
* @return zimbraNativeMobileAppMaxLocalDataSize, or 10240 if unset
38472+
*
38473+
* @since ZCS 10.1.22
38474+
*/
38475+
@ZAttr(id=7171)
38476+
public int getNativeMobileAppMaxLocalDataSize() {
38477+
return getIntAttr(Provisioning.A_zimbraNativeMobileAppMaxLocalDataSize, 10240, true);
38478+
}
38479+
38480+
/**
38481+
* Maximum stored data in mobile device.
38482+
*
38483+
* @param zimbraNativeMobileAppMaxLocalDataSize new value
38484+
* @throws com.zimbra.common.service.ServiceException if error during update
38485+
*
38486+
* @since ZCS 10.1.22
38487+
*/
38488+
@ZAttr(id=7171)
38489+
public void setNativeMobileAppMaxLocalDataSize(int zimbraNativeMobileAppMaxLocalDataSize) throws com.zimbra.common.service.ServiceException {
38490+
HashMap<String,Object> attrs = new HashMap<String,Object>();
38491+
attrs.put(Provisioning.A_zimbraNativeMobileAppMaxLocalDataSize, Integer.toString(zimbraNativeMobileAppMaxLocalDataSize));
38492+
getProvisioning().modifyAttrs(this, attrs);
38493+
}
38494+
38495+
/**
38496+
* Maximum stored data in mobile device.
38497+
*
38498+
* @param zimbraNativeMobileAppMaxLocalDataSize new value
38499+
* @param attrs existing map to populate, or null to create a new map
38500+
* @return populated map to pass into Provisioning.modifyAttrs
38501+
*
38502+
* @since ZCS 10.1.22
38503+
*/
38504+
@ZAttr(id=7171)
38505+
public Map<String,Object> setNativeMobileAppMaxLocalDataSize(int zimbraNativeMobileAppMaxLocalDataSize, Map<String,Object> attrs) {
38506+
if (attrs == null) attrs = new HashMap<String,Object>();
38507+
attrs.put(Provisioning.A_zimbraNativeMobileAppMaxLocalDataSize, Integer.toString(zimbraNativeMobileAppMaxLocalDataSize));
38508+
return attrs;
38509+
}
38510+
38511+
/**
38512+
* Maximum stored data in mobile device.
38513+
*
38514+
* @throws com.zimbra.common.service.ServiceException if error during update
38515+
*
38516+
* @since ZCS 10.1.22
38517+
*/
38518+
@ZAttr(id=7171)
38519+
public void unsetNativeMobileAppMaxLocalDataSize() throws com.zimbra.common.service.ServiceException {
38520+
HashMap<String,Object> attrs = new HashMap<String,Object>();
38521+
attrs.put(Provisioning.A_zimbraNativeMobileAppMaxLocalDataSize, "");
38522+
getProvisioning().modifyAttrs(this, attrs);
38523+
}
38524+
38525+
/**
38526+
* Maximum stored data in mobile device.
38527+
*
38528+
* @param attrs existing map to populate, or null to create a new map
38529+
* @return populated map to pass into Provisioning.modifyAttrs
38530+
*
38531+
* @since ZCS 10.1.22
38532+
*/
38533+
@ZAttr(id=7171)
38534+
public Map<String,Object> unsetNativeMobileAppMaxLocalDataSize(Map<String,Object> attrs) {
38535+
if (attrs == null) attrs = new HashMap<String,Object>();
38536+
attrs.put(Provisioning.A_zimbraNativeMobileAppMaxLocalDataSize, "");
38537+
return attrs;
38538+
}
38539+
3839638540
/**
3839738541
* Template used to construct the body of an email notification message.
3839838542
* This attribute is ignored when zimbraNewMailNotificationMessage is

0 commit comments

Comments
 (0)