use of com.zimbra.cs.account.ldap.entry.LdapGlobalGrant in project zm-mailbox by Zimbra.
the class LdapProvisioning method getGlobalGrant.
@Override
public synchronized GlobalGrant getGlobalGrant() throws ServiceException {
if (cachedGlobalGrant == null) {
String globalGrantDn = mDIT.globalGrantDN();
try {
ZAttributes attrs = helper.getAttributes(LdapUsage.GET_GLOBALGRANT, globalGrantDn);
LdapGlobalGrant globalGrant = new LdapGlobalGrant(globalGrantDn, attrs, this);
if (useCache) {
cachedGlobalGrant = globalGrant;
} else {
return globalGrant;
}
} catch (ServiceException e) {
throw ServiceException.FAILURE("unable to get globalgrant", e);
}
}
return cachedGlobalGrant;
}
Aggregations