@Facet ( name = "Unsupported" )
public Response getExecutableTypes() {
ArrayList<ExecutableFileTypeDto> executableTypes = new ArrayList<ExecutableFileTypeDto>();
for ( String contentType : pluginManager.getContentTypes() ) {
IContentInfo contentInfo = pluginManager.getContentTypeInfo( contentType );
ExecutableFileTypeDto executableFileType = new ExecutableFileTypeDto();
executableFileType.setDescription( contentInfo.getDescription() );
executableFileType.setExtension( contentInfo.getExtension() );
executableFileType.setTitle( contentInfo.getTitle() );
executableFileType.setCanSchedule( hasOperationId( contentInfo.getOperations(), "SCHEDULE_NEW" ) );
executableFileType.setCanEdit( hasOperationId( contentInfo.getOperations(), "EDIT" ) );
executableTypes.add( executableFileType );
}
final GenericEntity<List<ExecutableFileTypeDto>> entity =
new GenericEntity<List<ExecutableFileTypeDto>>( executableTypes ) {