/** * Returns all strong relation types.<p> * * @return a list of {@link CmsRelationType} objects */ public static List getAllStrong() { return filterStrong(getAll()); }
/** * Returns all weak relation types.<p> * * @return a list of {@link CmsRelationType} objects */ public static List<CmsRelationType> getAllWeak() { return filterWeak(getAll()); }
/** * Returns all relation types for relations defined in the content.<p> * * @return a list of {@link CmsRelationType} objects */ public static List getAllDefinedInContent() { return filterDefinedInContent(getAll()); }
/** * Returns all weak relation types.<p> * * @return a list of {@link CmsRelationType} objects */ public static List getAllWeak() { return filterWeak(getAll()); }
/** * Returns all relation types for relations that are not defined in the content.<p> * * @return a list of {@link CmsRelationType} objects */ public static List<CmsRelationType> getAllNotDefinedInContent() { return filterNotDefinedInContent(getAll()); }
/** * Returns all relation types for relations defined in the content.<p> * * @return a list of {@link CmsRelationType} objects */ public static List<CmsRelationType> getAllDefinedInContent() { return filterDefinedInContent(getAll()); }
/** * Returns all strong relation types.<p> * * @return a list of {@link CmsRelationType} objects */ public static List<CmsRelationType> getAllStrong() { return filterStrong(getAll()); }
/** * Returns all relation types for relations that are not defined in the content.<p> * * @return a list of {@link CmsRelationType} objects */ public static List getAllNotDefinedInContent() { return filterNotDefinedInContent(getAll()); }
/** * Gets a relation type by name.<p> * * @param typeName the relation type name * * @return the relation type with the matching name */ protected static CmsRelationType getRelationType(String typeName) { for (CmsRelationType relType : CmsRelationType.getAll()) { if (relType.getName().equalsIgnoreCase(typeName)) { return relType; } } return null; }
addTypeInternal(relationshipType); for (CmsRelationType relType : CmsRelationType.getAll()) { createRelationshipType(relType);