}
}
}
for (GssAce ace : allAces) {
// Handle Principal
GssPrincipal principal = ace.getPrincipal();
if (null == principal) {
LOGGER.log(Level.WARNING, "No Principal found in ace.");
continue;
}
if (null == principal.getType() || null == principal.getName()) {
LOGGER.log(Level.WARNING, "Either Principal Name [ "
+ principal.getName() + " ] or Principal Type [ "
+ principal.getType() + " ] is unavailable");
continue;
}
// Handle Permissions
GssSharepointPermission permissions = ace.getPermission();
if (null == permissions) {
LOGGER.log(Level.WARNING, "No permissions found for Principal [ "
+ principal.getName() + " ] ");
continue;
}
// Check to determine whether the object-type of the document is list
// list-item or site.