@ Indexable ( type = IndexableType . DELETE ) @ Override public CPDefinition deleteCPDefinition ( CPDefinition cpDefinition ) throws PortalException { return cpDefinitionPersistence . remove ( cpDefinition ) ; }
Deletes the cp definition from the database . Also notifies the appropriate model listeners .