public Class typeFromObjectTypeId ( final String objectTypeId , final BaseTypeId defaultType , final Class defaultClass ) { // default for cmuis:folder if ( defaultType . value ( ) . equals ( objectTypeId ) ) { return defaultClass ; } return StructrApp . getConfiguration ( ) . getNodeEntityClass ( objectTypeId ) ; }
Returns the Structr type for the given objectTypeId or the defaultClass of the objectTypeId matches the given baseTypeId .