public ObjectType getParentType() { return folder.getType().getParentType(); }
public ObjectType getParentType() { return doc.getType().getParentType(); }
/** * Determines supertypes for the given CMIS type in terms of JCR. * * @param cmisType given CMIS type * @return supertypes in JCR lexicon. */ private String[] superTypes( ObjectType cmisType ) { if (cmisType.getBaseTypeId() == BaseTypeId.CMIS_FOLDER) { return new String[] {JcrConstants.NT_FOLDER}; } if (cmisType.getBaseTypeId() == BaseTypeId.CMIS_DOCUMENT) { return new String[] {JcrConstants.NT_FILE}; } return new String[] {cmisType.getParentType().getId()}; }