private ObjectData getFolderParentIntern(String repositoryId, SingleFiling sop, String filter,
Boolean includeAllowableActions, IncludeRelationships includeRelationships,
String user, ObjectInfoHandler objectInfos) {
ObjectDataImpl parent = new ObjectDataImpl();
Folder parentFolder = sop.getParent();
if (null == parentFolder) {
return null;
}
copyFilteredProperties(repositoryId, parentFolder, filter, parent);
parent.setRelationships(DataObjectCreator.getRelationships(includeRelationships, parentFolder, user));
if (includeAllowableActions != null && includeAllowableActions) {
// AllowableActions allowableActions = DataObjectCreator.fillAllowableActions(spo, user);
AllowableActions allowableActions = parentFolder.getAllowableActions(user);
parent.setAllowableActions(allowableActions);
}
if (objectInfos != null) {
ObjectInfoImpl objectInfo = new ObjectInfoImpl();
fAtomLinkProvider.fillInformationForAtomLinks(repositoryId, parentFolder, objectInfo);