public Dictionary<string, AbstractPermission> getPermissions(PermissionType type, string duz)
{
if (StringUtils.isEmpty(duz))
{
throw new ArgumentNullException("Missing DUZ");
}
try
{
if (type == PermissionType.MenuOption)
{
return getMenuOptions(duz);
}
if (type == PermissionType.DelegatedOption)
{
return getDelegatedOptions(duz);
}
if (type == PermissionType.SecurityKey)
{
return getSecurityKeys(duz);
}
throw new ArgumentException("Invalid type");
}
catch (ConnectionException ce)
{
throw new ArgumentException(ce.Message);
}
}